Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Dispatcher does not pass mod_rewrite logging included via disp_apache2.c

leoh16127286
Level 2
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
albini65002106
Correct answer by
Level 2
Level 2

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

View solution in original post

6 Replies
hamidk92094312
Employee
Employee

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

jbrar
Employee
Employee

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

leoh16127286
Level 2
Level 2

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

albini65002106
Correct answer by
Level 2
Level 2

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

View solution in original post

leoh16127286
Level 2
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