httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Kuchin" <>
Subject [users@httpd] CGi warnings and error go into wrong error log
Date Tue, 24 Jan 2006 21:26:29 GMT

I am running
Apache/2.0.55 (FreeBSD) PHP/5.1.1 
on FreeBSD 6.0-STABLE

Apache compiles with threads (worker MPM).

There i have a main config file (httpd.conf) with main error and main access log
like this:

User www
Group www
ErrorLog /hosts/SYSTEM/httpd-error.log
CustomLog /hosts/SYSTEM/httpd-access.log combined
LogLevel debug

Then virtual hosts are loaded:

Include etc/apache2/Includes/*

Currently there is only one virtual host  wich has its own access
and error log:

    ErrorLog /hosts/
    CustomLog /hosts/ combined

But the problem is that if error occures (or anything output into stderr) 
in CGI script it  does not appear in virtual host error log, but it goes into
main server error log.

For example a simple script with error:

warn "It aint' workin'\n";

Outputs into virtual host error log only this:
[Wed Jan 25 00:25:56 2006] [error] [client] Premature end of script headers:

And the messages gotes into main server log in hosts/SYSTEM/httpd-error.log:
It aint' workin'

All the docs for Apache say that this should be this way. Any idea why this happens and how
avoid this? On apache 1.3 the warn message goes into  virtual host error log and on another
Apache/2.0.52 which is on FreebSD  5.3-STABLE and is NOT compiles with thread error logs
go to the right virtual host log.


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