Quote:>I thought that the <DirectoryMatch> in the main will apply to all my vhost.
>However, the following setups in my httpd.conf seems to be ignored
>by VirturalHost.
>Please let me know what I did wrong. Thanks!
>DocumentRoot /usr/local/apache/htdocs
><DirectoryMatch "^.*htdocs.*">
> AllowOverride All
> Options All
></DirectoryMatch>
Perhaps you don't quite understand how regular expressions work in
apache. Docs for <Directory> mention the following:
"Also as of Apache 1.3 none of the wildcards match a `/' character, which
more closely mimics the behaviour of Unix shells."
".*" does not match a "/", so the above statement would not apply to the
paths in the vhosts below. Maybe you want to match "/htdocs/" instead
since your paths do not have a consistant number of leading directories.
Quote:><VirtualHost vhost1>
>DocumentRoot /vhosts/vhost1/htdocs
>....
></VirtualHost>
><VirtualHost vhost2>
>DocumentRoot /other/directory/vhost2/htdocs
>....
></VirturalHost>
--
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/