httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <p...@ukweb.com>
Subject Re: 404 errors for server-parsed files not logged in error log (fwd)
Date Sat, 19 Apr 1997 19:54:08 GMT
On Sat, 19 Apr 1997, Rob Hartill forwarded this bug:
> Description: If a server-parsed file is Not Found, the error is
>              registered in the access log but not in the error log.
> Apache version: 1.2b2 (didn't see anything in the Changes file about this)
> Level: Non-critical

True, I think this is a bug. He gives the fix in detail. The corresponding
patch is (can PATH_INFO be set here?)...

Index: mod_include.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_include.c,v
retrieving revision 1.28
diff -c -r1.28 mod_include.c
*** mod_include.c	1997/04/06 07:43:41	1.28
--- mod_include.c	1997/04/19 19:49:20
***************
*** 1737,1743 ****
  
      if (!(allow_options (r) & OPT_INCLUDES)) return DECLINED;
      if (r->method_number != M_GET) return DECLINED;
!     if (r->finfo.st_mode == 0) return NOT_FOUND;
  	
      if (*state == xbithack_full
  #ifndef __EMX__    
--- 1737,1748 ----
  
      if (!(allow_options (r) & OPT_INCLUDES)) return DECLINED;
      if (r->method_number != M_GET) return DECLINED;
!     if (r->finfo.st_mode == 0) {
!         log_reason("File does not exist",
!             r->path_info ? pstrcat(r->pool, r->filename, r->path_info, NULL)
!                 : r->filename, r);
! 	return NOT_FOUND;
!     }
  	
      if (*state == xbithack_full
  #ifndef __EMX__    



Mime
View raw message