On Wed, 4 Aug 2004 09:24 am, Voytek wrote:
> I have multiple name vhosts, Id' like it to apply to all vhosts, if
> possible, looking at what I currently have, is:
> in the main httpd.conf:
>
> ...
> #DocumentRoot "/var/www/html"
> DocumentRoot "/home/sbt/www"
>
> <Directory />
> Options FollowSymLinks
> AllowOverride AuthConfig
> </Directory>
Gulp. Don't forget that in your Directory statements, you are providing the
full, rather than the relative path for the directory. You probably want to
leave your root directory as
AllowOverride None
> #<Directory "/var/www/html">
> <Directory "/home/sbt/www">
> Options Indexes FollowSymLinks +IncludesNOEXEC
> AllowOverride None
> # AllowOverride All
> Order allow,deny
> Allow from all
> </Directory>
>
>
> so, does above mean that it will allow AuthConfig in the web root of
> /home/www/sbt/ ?
Directory configs work on an override basis, so settings for Directories
further away from / subsume preceding ones (see
http://httpd.apache.org/docs-2.0/en/mod/core.html.en#directory for a far
better explanation than I can provide). So in your example, the entry
AllowOverride None
means that .htaccess entries will not be honoured for /home/sbt/www and below.
This setup
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory /my/virtual/host>
Options Indexes FollowSymLinks +IncludesNOEXEC
AllowOverride AuthConfig
Order allow, deny
Allow from all
</Directory>
prohibits access and .htaccess style reconfiguration for the root directory,
but permits access and .htaccess authorization for the
directory /my/virtual/host and below.
>
> can I enable it for all vhosts ?
> the vhosts have individual name.tld.conf files, like:
>
> <VirtualHost 203.42.34.54:80>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /home/russelllea/www
> ServerName www.russelllea
> ErrorDocument 404 /index.html
> </VirtualHost>
>
> or, do I need an individual entry for each vhost ?
That is certainly what I'd choose. A bit of work now, but in future it would
just become process each time you set up new virtual hosts.
Seb
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html