Difference between revisions of "Enable Apache rewrite logging"

From Brian Nelson Ramblings
Jump to: navigation, search
(Created page with "==Enable Apache rewrite logging== Found this out to be handy when trying to determine if a rewrite is php or apache One trick is to turn on the rewrite log. To turn it on,tr...")
 
(No difference)

Latest revision as of 12:55, 21 March 2018

Enable Apache rewrite logging

Found this out to be handy when trying to determine if a rewrite is php or apache

One trick is to turn on the rewrite log. To turn it on,try these lines in your apache main config or current virtual host file (not in .htaccess):

RewriteEngine On
RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 3

Since Apache httpd 2.4 mod_rewrite RewriteLog and RewriteLogLevel directives has been completely replaced by the new per-module logging configuration.

LogLevel alert rewrite:trace6

Happy rewrite hunting!!!