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:


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.


[Back] Return to Server Configuration File Overview
NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / 10-02-95