You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/01/11 20:21:53 UTC
[Bug 55989] New: write to error log upon RewriteRule [F]orbidden
https://issues.apache.org/bugzilla/show_bug.cgi?id=55989
Bug ID: 55989
Summary: write to error log upon RewriteRule [F]orbidden
Product: Apache httpd-2
Version: 2.2.22
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
Assignee: bugs@httpd.apache.org
Reporter: viktor@szepe.net
Is it possible to write to error log - like mod_authz_host - upon HTTP/403 with
RewriteRule?
Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55989] write to error log upon RewriteRule [F]orbidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55989
--- Comment #5 from Szépe Viktor <vi...@szepe.net> ---
Thank you for the mod_log_debug suggestion!
I think enabling another module is the last resort.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55989] write to error log upon RewriteRule [F]orbidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55989
--- Comment #6 from Szépe Viktor <vi...@szepe.net> ---
Is it function call needed to write in the error log?
I think is should be in "case 'F':" in mod_rewrite.c.
ap_log_rerror(APLOG_MARK, APLOG_ERR, APR_SUCCESS, r, APLOGNO(01630)
"client denied by server configuration: %s%s",
r->filename ? "" : "uri ",
r->filename ? r->filename : r->uri);
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55989] write to error log upon RewriteRule [F]orbidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55989
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Eric Covener <co...@gmail.com> ---
Bugzilla is for reporting bugs, not support or Q&A. If you're suggesting an
enhancement for 2.2, please reopen and reclassify.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55989] write to error log upon RewriteRule [F]orbidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55989
--- Comment #3 from Szépe Viktor <vi...@szepe.net> ---
I think that this is a one-liner in the source code.
Could you please add this error message.
Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55989] write to error log upon RewriteRule [F]orbidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55989
Szépe Viktor <vi...@szepe.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from Szépe Viktor <vi...@szepe.net> ---
Sorry! I know it.
I've just notived recently that fail2ban does not ban RewriteRule [F] requests.
And yes, this is a feature request.
I'd like to have "client denied by server configuration:" - like in
mod_authz_host - written to the error log.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55989] write to error log upon RewriteRule [F]orbidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55989
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 55989] write to error log upon RewriteRule [F]orbidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55989
--- Comment #4 from Rainer Jung <ra...@kippdata.de> ---
Using Apache 2.4 you can add custom logging using mod_log_debug.
E.g. set your own env var in the RewriteRule as a side effect and then use
mod_log_debug to log your chosen message when the env var is set.
This feature doesn't exist for 2.2 though.
I'm not judging on whether a builtin log statement makes sense w.r.t.
consistency with AAA modules.
Regards,
Rainer
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org