httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Donker <>
Subject Re: [users@httpd] CustomLog directive in <VirtualHost> container breaks Apache
Date Tue, 07 Jun 2005 12:13:01 GMT
Nick Jones wrote:

>Hi (new to this list, my first post)
>I'm running 2.0.49 on SLES9. I have my main server
>configuration, which works dandy. Then I set up three
>virtual hosts: one for the main server, and two for
>subdomains that I set up. All three virtual hosts log
>to the same access_log and error_log file. I want to
>have each virtual host log to it's own file to make it
>easier to count my page hits. My <VirtualHost>
>directives look like this:
><VirtualHost *:80>
> DocumentRoot /srv/www/htdocs
> ServerName
> ServerAlias
> ServerAdmin
><VirtualHost *:80>
> DocumentRoot /srv/www/host1
> ServerName
> ServerAlias
> ServerAdmin
> CustomLog logs/host1_access_log.log combined
></VirtualHost *:80>
>*One more <VirtualHost> container exactly the same as
>the one before with*
>If I put in the CustomLog directives, then do an
>apache2ctl graceful, I get no errors whatsoever, oddly
>enough, but the Apache Server doesn't run and my sites
>aren't being served. If I comment out or remove the
>CustomLog directives, then do an apache2ctl graceful,
>I get no errors and the server runs just dandy, but
>with all the logs going to the same access_log file.
>TIA for any help and insight.

Some errorlogs please

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