Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

Level 2

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

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