30 May 2012 00:51
[Httpd Wiki] Update of "RewriteLog" by jmcg
Apache Wiki <wikidiffs <at> apache.org>
2012-05-29 22:51:20 GMT
2012-05-29 22:51:20 GMT
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 jmcg: http://wiki.apache.org/httpd/RewriteLog New page: 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]] Config: {{{ RewriteLogLevel 9 RewriteLog "||/usr/local/rewrite_log_pipe" }}} Like in a usual setup, we set `RewriteLogLevel` high enough to be verbose enough. However, instead of logging to a file, we will pipe the log through a program. This program will be a short and simple Perl script: {{{#!perl #!/usr/bin/env perl $|++ open (F, ">>/tmp/rewrite.log"); select F; while (<>) {(Continue reading)
RSS Feed