Dispatcher does not pass mod_rewrite logging included via disp_apache2.c | Community
Skip to main content
Level 2
October 22, 2019
Solved

Dispatcher does not pass mod_rewrite logging included via disp_apache2.c

  • October 22, 2019
  • 6 replies
  • 3495 views

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.
Best answer by AlbinIs1

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

6 replies

Adobe Employee
October 22, 2019

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

Adobe Employee
October 23, 2019

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

Level 2
October 30, 2019

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

Level 2
October 30, 2019

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

AlbinIs1Community AdvisorAccepted solution
Community Advisor
October 31, 2019

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

Level 2
November 2, 2019

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