kirk at emstraffic.com
Thu Feb 10 13:09:42 MST 2005
I am using apache 1.3
I am using the apache VirtualDocumentRoot to serve files from certain directories.
The domain of http://www.testdomain.com would serve from /var/www/virtual/com/testdomain
The problem is that now I have some domains that are like http://www.testdomain.co.uk
VirtualDocumentRoot /var/www/virtual/%-1/%-2/%-3 works for http://www.testdomain.co.uk
but it breaks http://www.testdomain.com
I want to find a VirtualDocumentRoot that makes them both work.
Is there a way to make an easy if statement in the httpd.conf file?
A link to apache documentation on this is http://httpd.apache.org/docs/mod/mod_vhost_alias.html
More information about the PLUG