On 3/16/07, matt farey <matt.farey@xxxxxxxxx> 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 :) -- Alberto Giménez --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx