httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matt farey <matt.fa...@gmail.com>
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 <matt.farey@gmail.com> wrote:
>>
>> anything which doesnt match a hostname will use the first defined
>> virtualhost,
>>
>> I do not have
>> <VirtualHost 192.168.0.150>
>>        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" www.portal.com domain
> was the first defined virtual host, then all other domain requests
> used that definition, EVEN if doman name was diferent, so requests to
> www.abcd.com 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message