Dynamically configured mass virtual hosting help needed !

Discussion in 'Linux VPS/Dedicated - General' started by Michael, Apr 22, 2007.

  1. Michael

    Michael New Member

    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 ?

  2. khiltd

    khiltd New Member

Share This Page