Dynamically configured mass virtual hosting help needed !

#1
I am trying to use dynamically configured mass virtual hosting
I added the following to httpd.conf:

VirtualDocumentRoot /var/www/domains/%0

Requests to http://domain-name.com work fine, but www.domain-name.com results in 404

So I added this to httpd.conf:

RewriteEngine On
RewriteRule ^www.(.+)$ /var/www/domains/$1

Still not working.

Any ideas how to fix ithe problem ?

Thanks!
 
Top