Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev

[PATCH] Log inconsistency on rewrite [F]

 

 

Apache dev RSS feed   Index | Next | Previous | View Threaded


vincent at gryzor

Sep 26, 2009, 12:41 PM

Post #1 of 1 (244 views)
Permalink
[PATCH] Log inconsistency on rewrite [F]

Greetings,


A stupid config example to make my point :

Loglevel debug
RewriteEngine On
RewriteRule .* - [F]

This denies all requests, and logs nothing at all in error log to
explain that behavior.
This is contrary to a common Apache behavior about all non 2XX answers
triggering an explanation message in error log. For instance, "deny from
all" does.

It means people need to set RewriteLog stuff to even find out that
Rewrite was the source of the 403, which is IMHO bad.

I am therefore submitting this trivial patch against trunk's rewrite.c :
all it does is to add an error log entry when rewrite triggers a [F] rule.

I hope someone will kindly apply it, or please bash me :)

Regards,

gryzor
Attachments: rewrite_403_log.patch (0.56 KB)

Apache dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.