On 08/10/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi people, I have a problem with mod_vhost_alias conflicting with
> VirtualHost containers. This is the relevant part of my conf

Try something like this:

NameVirtualHost *:80

<VirtualHost *:80>
 ServerName dummy
 VirtualDocumentRoot /what/ever
</VirtualHost>

<VirtualHost *:80>
 ServerName specific.name
 DocumentRoot /var/www/specific_site
</VirtualHost>

<VirtualHost *:80>
 ServerName another.specific.name
 DocumentRoot /var/www/another_specific_site
</VirtualHost>

The should work because the latter vhosts will be used when the name
matches exactly, and the first one will be used when there's no
specific match (allowing it to try and figure out the path based on
the host name).

Alternatively, you can put the 'dynamic' host later in the list, using
ServerAlias * to make it the catch-all.

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to