httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matt farey <>
Subject Re: [users@httpd] Handling VirtualDocumentRoot inside VirtualHosts
Date Fri, 16 Mar 2007 12:21:48 GMT

Alberto Giménez wrote:
> On 3/16/07, matt farey <> wrote:
>> anything which doesnt match a hostname will use the first defined
>> virtualhost,
>> I do not have
>> <VirtualHost>
>>        VirtualDocumentRoot /var/www/sites/%-2.1/%-2.2/%-2.3/%-2.0.%-1/
>>  DirectoryIndex index.php index.html
>>  CustomLog /var/log/apache/webs_access_log vspecial
>> </VirtualHost>
>> I only have
>>  VirtualDocumentRoot /var/www/sites/%-2.1/%-2.2/%-2.3/%-2.0.%-1/
>>  DirectoryIndex index.php index.html
>>  CustomLog /var/log/apache/webs_access_log vspecial
>> at the end after all my virtualhost definitions
> I've tried it, but it misworked. As the "main" domain
> was the first defined virtual host, then all other domain requests
> used that definition, EVEN if doman name was diferent, so requests to
> are logged to portal_access_log instead of
> webs_access_log. Quite strange, the VirtualDocRoot thing worked, is
> just the Log what didn't work :?. Any idea?
> Anyway, I'm trying different combinations, I'll report strange things :)
No it was my fault, I should hav mentioned that I am using the latest
2.2.x build, sorry about that.
What you are doing seems fine though, however it works, keep it that way!

Matthew Farey

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message