1 |
On Monday 11 June 2012 02:58:08 Michael Orlitzky wrote: |
2 |
|
3 |
> If you want to allow [rewrites] in an htaccess, you'll need at least, |
4 |
> |
5 |
> <Directory "/var/www/whatever"> |
6 |
> Options +SymLinksIfOwnerMatch |
7 |
> AllowOverride FileInfo Options |
8 |
> </Directory> |
9 |
> |
10 |
> in the main config or your vhost config. |
11 |
|
12 |
OK, I've added that to 00_default_settings.conf. I'm not sure whether I |
13 |
need rewrites though. |
14 |
|
15 |
> The Gentoo config modularizes by default, but you don't have to use |
16 |
> it if you don't want to. Almost everything under |
17 |
> /etc/apache2/modules.d is disabled by default unless you enable it |
18 |
> in /etc/conf.d/apache2. |
19 |
> |
20 |
> Named virtual hosts are also disabled by default if I remember |
21 |
> correctly, so you should be able to just stick stuff in httpd.conf or |
22 |
> 00_default_settings.conf and have it take effect if you don't want to |
23 |
> do anything fancy. |
24 |
|
25 |
At present I don't need to serve more than one site from this box so I |
26 |
haven't tried virtual hosts, named or otherwise. |
27 |
|
28 |
> Almost everything "different" about the Gentoo config comes from |
29 |
> these two lines at the bottom of httpd.conf: |
30 |
> |
31 |
> Include /etc/apache2/modules.d/*.conf |
32 |
> Include /etc/apache2/vhosts.d/*.conf |
33 |
> |
34 |
> which do exactly what you'd expect. |
35 |
|
36 |
The fog is beginning to clear. Thanks. |
37 |
|
38 |
I still can't get server-side includes to work though. Modules.d/*.conf |
39 |
don't include a suitable module. I've added "-D INCLUDE" to APACHE2_OPTS |
40 |
in /etc/conf.d/apache2.conf but it seems not to be enough. |
41 |
|
42 |
Also: |
43 |
|
44 |
# emerge -pv apache |
45 |
|
46 |
These are the packages that would be merged, in order: |
47 |
|
48 |
Calculating dependencies ...... done! |
49 |
[ebuild R ] www-servers/apache-2.2.22-r1 USE="ssl -debug -doc - |
50 |
ldap (-selinux) -static -suexec -threads" APACHE2_MODULES="actions alias |
51 |
auth_basic authn_alias authn_anon authn_dbm authn_default authn_file |
52 |
authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user |
53 |
autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env |
54 |
expires ext_filter file_cache filter headers include info log_config logio |
55 |
mem_cache mime mime_magic negotiation rewrite setenvif speling status |
56 |
unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd - |
57 |
cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic - |
58 |
proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http - |
59 |
proxy_scgi -reqtimeout -substitute -version" APACHE2_MPMS="prefork - |
60 |
event -itk -peruser -worker" 5,316 kB |
61 |
|
62 |
...which includes "include". |
63 |
|
64 |
-- |
65 |
Rgds |
66 |
Peter |