1

I'm trying to get detailed logging messages from mod_rewrite for apache 2.4.

The apache manual tells me to add this to my virtual host config:

LogLevel alert rewrite:trace3

The post https://stackoverflow.com/a/17279058/671639 sugests

LogLevel rewrite:trace3

Unfortunately apache gives the same error message for both of them:

Syntax error on line 45 of /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf:
LogLevel requires level keyword: one of emerg/alert/crit/error/warn/notice/info/debug

If I use LogLevel debug, mod_rewrite isn't logging anything.

Any ideas?

Community
  • 1
  • 1
BetaRide
  • 16,207
  • 29
  • 99
  • 177

1 Answers1

1

From your error message, you're using Apache 2.2 (or earlier) which does not have trace1-trace8 LogLevels. You'll need to use RewriteLog and RewriteLogLevel on pre-2.4.

covener
  • 17,402
  • 2
  • 31
  • 45