ErrorLog Directive
Top -
Docs -
General -
Server -
Resource -
Access -
FAQ -
Tutorials
Purpose
The ErrorLog directive sets
the file to which HTTPd will log errors and status messages it encounters.
It currently logs the following:
- Startup Message, Restart Message, and Halt Message
- Debug Dumps (from USR1 signal)
- Clients which time out and abort
- Scripts which produce no output (malformed header from script)
- .htaccess files which
attempt to override things they do not have permission to
- Server bugs which produce a segmentation violation or bus error
- User
Authentication configuration problems
- File doesn't exist errors
- Resource Limit errors
Syntax
ErrorLog file
file
is the name of the file to which errors will be
logged. It is either a full pathname, or a partial pathname
relative to ServerRoot.
Virtual Host
This directive is valid in the virtual host section.
Default
If you do not specify an ErrorLog, HTTPd assumes:
ErrorLog logs/error_log
Compile Option: DEFAULT_ERRORLOG
Examples
ErrorLog logs/errors
This logs errors to the file logs/errors in the ServerRoot directory.
ErrorLog /tmp/httpd-errors
This logs errors to the file /tmp/httpd-errors
.
ErrorLog /dev/null
This effectively turns off error logging.
Return to Server Configuration File Overview
NCSA HTTPd Development Team /
httpd@ncsa.uiuc.edu /
10-02-95