RewriteLog

Name

RewriteLog -- Specify a log file for mod_rewrite reporting

Synopsis

RewriteLog [ file|"none"]

Default

None

Context

server config, <Global>, <VirtualHost>

Module

mod_rewrite

Compatibility

1.2.6rc1 and later

Description

The RewriteLog directive is used to a specify a log file for mod_rewrite reporting and debugging, and can be done a per-server basis. The file parameter must be the full path to the file to use for logging. Note that this path must not be to a world-writeable directory and, unless AllowLogSymlinks is explicitly set to on (generally a bad idea), the path must not be a symbolic link. In general, this directive should only be used for debugging your mod_rewrite configuration, and should be removed once debugging is completed; do not use this directive in a production configuration.

If file is "none", no logging will be done at all; this setting can be used to override a RewriteLog setting inherited from a <Global> context.

See also