Dispatcher does not pass mod_rewrite logging included via disp_apache2.c | Community
Skip to main content
Level 2
Oct 22, 2019 3:34 PM UTC
Solved

Dispatcher does not pass mod_rewrite logging included via disp_apache2.c

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
AlbinIs1Accepted solution
Level 2
Oct 31, 2019 5:21 PM UTC

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

6 replies

Level 2
Nov 2, 2019 1:06 AM UTC

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

Translate
AlbinIs1Accepted solution
Level 2
Oct 31, 2019 5:21 PM UTC

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

Translate
Level 2
Oct 30, 2019 11:03 PM UTC

As for https://stackoverflow.com/questions/9632852/how-to-debug-apache-mod-rewrite​, the suggestion is to use LogLevel in Apache 2.4, which I did

Translate
Level 2
Oct 30, 2019 11:02 PM UTC

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

Translate
Employee
Oct 23, 2019 2:15 PM UTC

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

Translate
Employee
Oct 22, 2019 3:40 PM UTC

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

Translate