You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/09/07 12:19:20 UTC

DO NOT REPLY [Bug 31086] New: - ErrorLog on VirtualHost crashes apache if directory does not exist

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31086>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31086

ErrorLog on VirtualHost crashes apache if directory does not exist

           Summary: ErrorLog on VirtualHost crashes apache if directory does
                    not exist
           Product: Apache httpd-1.3
           Version: 1.3.29
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: wilco@baanhofman.nl


If the directory does not exists which should contain the error log for a 
virtual host (say a user deletes their logs directory, or it wasn't created yet 
at the time apache starts, gets SIGUSR1 or receives a hit on the page).. apache 
crashes with a "No such file or directory" error.

Apache should not crash on error logs on virtual hosts.

The log entry from the general error.log:

fopen: No such file or directory
apache: could not open error log file /home/http/domain.tld/logs/error.log

If that logs directory doesn't exist it crashes apache.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org