Expand my Community achievements bar.

SOLVED

Dispatcher does not pass mod_rewrite logging included via disp_apache2.c

Avatar

Level 2

I was unable to turn logging on for mod_rewrite.

I tried setting "LogLevel warn rewrite:info" in my_publish.vhost (see core - Apache HTTP Server Version 2.5 ), but my own rewrites would not get logged. On the other hand, default rewrite rules started getting logged with this setting.

Any suggestions?

Thanks,

Leo

1 Accepted Solution

Avatar

Correct answer by
Level 2

Try the following configuration if that helps - LogLevel alert rewrite:trace6

View solution in original post

6 Replies

Avatar

Employee

What if you set the log level to more verbose level e.g. debug ?

Avatar

Employee Advisor

Mod_rewite is one of the many modules that is installed on apache. You can look at [1] on enabling logging for rewrite module.

[1] https://stackoverflow.com/questions/9632852/how-to-debug-apache-mod-rewrite

Avatar

Level 2

I tried setting "LogLevel warn rewrite:debug" which did not produce any rewrite rules output either.

Avatar

Correct answer by
Level 2

Try the following configuration if that helps - LogLevel alert rewrite:trace6

Avatar

Level 2

LogLevel alert rewrite:trace6 produces rewrites in error_log. I did not check error_log initially because it was counter-intuitive to search for debug info in errors