Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "RewriteLog" page has been changed by thumbs: https://wiki.apache.org/httpd/RewriteLog?action=diff&rev1=1&rev2=2 Comment: Expanded with 2.2 vs 2.4 differences, fixed links. + = Purpose = + + As you build more complex rewrite rules, you may find yourself in a situation where debugging is required. The rewrite log will allow you to examine the process in which mod_rewrite examines the requested URI, and applies the requested patterns. + + = Configuration = + + == apache HTTP server 2.4 == + + Logging for mod_rewrite is now in the [[http://httpd.apache.org/docs/current/mod/core.html#errorlog|ErrorLog]], see [[http://httpd.apache.org/docs/current/mod/mod_rewrite.html#logging|logging]] + + == apache HTTP server 2.2 (and older) == + + Place the following directives in your vhost, if applicable. Otherwise, place them in the server context: + + [[http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteengine|RewriteEngine]] on + + [[http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritelog|RewriteLog]] /path/to/log + + [[http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteloglevel|RewriteLogLevel]] 5 + + ''Using a [[http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteloglevel|RewriteLogLevel]] value higher than 5 will not produce additional logging output'' + + = Recipes = + - This here describes a recipie for creating a RewriteLog that is actually readable. It is based on Rich Bowen's presentation [[http://people.apache.org/~rbowen/presentations/Apache_Nuts_Bolts_files/|Apache Nuts and Bolts]] + Here is a recipe for creating a rewrite log that is actually readable. It is based on Rich Bowen's presentation [[http://people.apache.org/~rbowen/presentations/Apache_Nuts_Bolts_files/|Apache Nuts and Bolts]] Config: {{{ --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org For additional commands, e-mail: docs-h...@httpd.apache.org