On Monday 11 June 2012 02:58:08 Michael Orlitzky wrote:

> If you want to allow [rewrites] in an htaccess, you'll need at least,
> 
>   <Directory "/var/www/whatever">
>     Options +SymLinksIfOwnerMatch
>     AllowOverride FileInfo Options
>   </Directory>
> 
> in the main config or your vhost config.

OK, I've added that to 00_default_settings.conf. I'm not sure whether I 
need rewrites though.

> The Gentoo config modularizes by default, but you don't have to use
> it if you don't want to. Almost everything under
> /etc/apache2/modules.d is disabled by default unless you enable it
> in /etc/conf.d/apache2.
> 
> Named virtual hosts are also disabled by default if I remember
> correctly, so you should be able to just stick stuff in httpd.conf or
> 00_default_settings.conf and have it take effect if you don't want to
> do anything fancy.

At present I don't need to serve more than one site from this box so I 
haven't tried virtual hosts, named or otherwise.

> Almost everything "different" about the Gentoo config comes from
> these two lines at the bottom of httpd.conf:
> 
>   Include /etc/apache2/modules.d/*.conf
>   Include /etc/apache2/vhosts.d/*.conf
> 
> which do exactly what you'd expect.

The fog is beginning to clear. Thanks.

I still can't get server-side includes to work though. Modules.d/*.conf 
don't include a suitable module. I've added "-D INCLUDE" to APACHE2_OPTS 
in /etc/conf.d/apache2.conf but it seems not to be enough.

Also:

# emerge -pv apache

These are the packages that would be merged, in order:

Calculating dependencies  ...... done!
[ebuild   R    ] www-servers/apache-2.2.22-r1  USE="ssl -debug -doc -
ldap (-selinux) -static -suexec -threads" APACHE2_MODULES="actions alias 
auth_basic authn_alias authn_anon authn_dbm authn_default authn_file 
authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user 
autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env 
expires ext_filter file_cache filter headers include info log_config logio 
mem_cache mime mime_magic negotiation rewrite setenvif speling status 
unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -
cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -
proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -
proxy_scgi -reqtimeout -substitute -version" APACHE2_MPMS="prefork -
event -itk -peruser -worker" 5,316 kB

...which includes "include".

-- 
Rgds
Peter

Reply via email to