I am using apache 1.3
I am using the apache VirtualDocumentRoot to serve files from certain 
directories.

VirtualDocumentRoot /var/www/virtual/%-1/%-2

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?
Any suggestions?

A link to apache documentation on this is 
http://httpd.apache.org/docs/mod/mod_vhost_alias.html

Thanks.
.===================================.
| This has been a P.L.U.G. mailing. |
|      Don't Fear the Penguin.      |
|  IRC: #utah at irc.freenode.net   |
`==================================='

Reply via email to