19.9 mod_cgi

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition
By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 19.  Apache Modules

19.9 mod_cgi

The mod_cgi module provides for execution of CGI scripts, including the handling of environment variables and logging. When a CGI script is started, this module creates an environment variable called DOCUMENT_ROOT that mimics the DocumentRoot directive. It also sets the REMOTE_HOST, REMOTE_IDENT, and REMOTE_USER environment variables if appropriate.

ScriptLog

  ScriptLog   filename  

[ server config ]

Sets the name of the CGI-script error log, either as a fully qualified filename or relative to ServerRoot. All CGI errors are written out to this file. Note that there is no default log file; if this directive is omitted, the log file isn't created, and all errors are discarded.

ScriptLogLength

  ScriptLogLength   size  

[ server config ]

Specifies the maximum length of the CGI-script error log file. This is essentially a safety precaution. If the error log file exceeds this length, no more data will be written to it. The default is 10385760 bytes.

ScriptLogBuffer

  ScriptLogBuffer   size  

[ server config ]

Specifies how much data at a time can be logged to the CGI-script error log with an HTTP PUT or POST command. The default is 1024 bytes.


Team-Fly    
Top


Webmaster in a Nutshell
Webmaster in a Nutshell, Third Edition
ISBN: 0596003579
EAN: 2147483647
Year: 2002
Pages: 412

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net