ErrorLog directive


Purpose

The ErrorLog directive sets the file to which httpd will log errors it encounters. It currently logs the following error conditions:


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.

Only one ErrorLog directive is allowed in the configuration file.


Default

If you do not specify an ErrorLog, httpd assumes:

ErrorLog logs/error_log


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

httpd@ncsa.uiuc.edu