httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r529626 - in /httpd/httpd/trunk/modules/aaa: mod_access_compat.c mod_authz_core.c
Date Tue, 17 Apr 2007 14:36:13 GMT
Author: trawick
Date: Tue Apr 17 07:36:12 2007
New Revision: 529626

URL: http://svn.apache.org/viewvc?view=rev&rev=529626
Log:
log the uri for some access-denied paths when r->filename is
unset

Modified:
    httpd/httpd/trunk/modules/aaa/mod_access_compat.c
    httpd/httpd/trunk/modules/aaa/mod_authz_core.c

Modified: httpd/httpd/trunk/modules/aaa/mod_access_compat.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_access_compat.c?view=diff&rev=529626&r1=529625&r2=529626
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_access_compat.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_access_compat.c Tue Apr 17 07:36:12 2007
@@ -363,8 +363,9 @@
 
     if (ret == HTTP_FORBIDDEN) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
-                      "client denied by server configuration: %s",
-                      r->filename); 
+                      "client denied by server configuration: %s%s",
+                      r->filename ? "" : "uri ",
+                      r->filename ? r->filename : r->uri);
     }
 
     return ret;

Modified: httpd/httpd/trunk/modules/aaa/mod_authz_core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authz_core.c?view=diff&rev=529626&r1=529625&r2=529626
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authz_core.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authz_core.c Tue Apr 17 07:36:12 2007
@@ -746,8 +746,9 @@
                 if (!note || (ap_satisfies(r) != SATISFY_ANY) || (note[0] == 'N')) {
                     if (r->ap_auth_type == NULL) {
                         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
-                                      "client denied by server configuration: %s",
-                                      r->filename); 
+                                      "client denied by server configuration: %s%s",
+                                      r->filename ? "" : "uri ",
+                                      r->filename ? r->filename : r->uri);
                         return_code = HTTP_FORBIDDEN;
                     }
                     else {



Mime
View raw message