.htaccess tutorial

htaccess Elite


SetEnv to Specify CGI/Apache Error Log

The use of these awesome and useful mod_env directives and mod_setenvif directives setenvif

SetEnv to Specify CGI/Apache Error Log

New postby produke » 03 Oct 2006 02:25

Sometimes your web site host uses environment variables to specify the error log file. In that case, just set it where you want.

Code: Select all
SetEnv ERRLOG /error.log


The ErrorLog feature allows you to specify the local UNIX path to store your server error logs. These logs contain errors that visitors have encountered on your website. To specify a custom error log on your account, insert the following code:

Code: Select all
ErrorLog /logs/error_log.log
User avatar
produke
 
Posts: 242
Joined: 25 Sep 2006 04:48

Return to SetEnvIf, SetEnv, PassEnv, UnsetEnv