Dynamic virtual hosts - www.* doesnt work

I have a server that is used by only 3 people. For simplicities sake, we host everything in one folder (/path). For all of our domains (domain.com), there is a folder /path/domain.com

Right now, this is what I have in my httpd.conf (Apache 2.0):
VirtualDocumentRoot /path/%0
VirtualScriptAlias /path/%0/cgi-bin

This works fine, except for one thing. Whenever we browse to www.domain.com (versus just domain.com), we get a "not found" error. This is obviously because the server is looking for /path/www.domain.com (which doesnt exist, the correct path is /path/domain.com).

How can I fix it?

Thanks Dynamic virtual hosts - www.* doesnt work

 

 

 

 

Top