httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sameer <sam...@laptop.c2.net>
Subject [No Subject]
Date Mon, 16 Sep 1996 06:50:06 GMT
Index: http_log.c
===================================================================
RCS file: /usr/local/apache-cvs/apache/http_log.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 http_log.c
*** 1.1.1.1	1996/07/30 01:43:23
--- http_log.c	1996/09/16 07:01:26
***************
*** 189,193 ****
--- 189,200 ----
  	     get_remote_host(r->connection, r->per_dir_config, REMOTE_NAME),
  	     reason);
      fflush (r->server->error_log);
+ 
+     r->error_msg = pstrcat(r->pool, "[", get_time(),
+ 			    "] access to ",
+ 			    file, " failed for ",
+ 			    get_remote_host(r->connection, r->per_dir_config,
+ 					    REMOTE_NAME),
+ 			    ", reason: ", reason, "\n", NULL);
  }
  
Index: http_protocol.c
===================================================================
RCS file: /usr/local/apache-cvs/apache/http_protocol.c,v
retrieving revision 1.5
diff -c -r1.5 http_protocol.c
*** 1.5	1996/09/03 04:51:04
--- http_protocol.c	1996/09/16 07:01:37
***************
*** 949,954 ****
--- 949,961 ----
  	    bputs("response from an upstream server.<P>\015\012", fd);
  	    break;
  	}
+ 	if(r->error_msg != NULL)
+ 	  {
+ 	    bvputs(fd, 
+ 		   "<P>There was also some additional information available"
+ 		   " about the error:<BR><CODE>", r->error_msg, 
+ 		   "</CODE>", NULL);
+ 	  }
  
          if (recursive_error) {
  	    char x[80];
Index: http_request.c
===================================================================
RCS file: /usr/local/apache-cvs/apache/http_request.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 http_request.c
*** 1.1.1.1	1996/07/30 01:43:23
--- http_request.c	1996/09/16 07:01:44
***************
*** 616,622 ****
       */
      
      if (custom_response && custom_response[0] != '"') {
!           
          if (is_url(custom_response)) {
  	    /* The URL isn't local, so lets drop through the rest of
  	     * this apache code, and continue with the usual REDIRECT
--- 616,625 ----
       */
      
      if (custom_response && custom_response[0] != '"') {
!       table *e = r->subprocess_env;
! 
!       table_set (e, "ERROR_MSG", r->error_msg);
!  
          if (is_url(custom_response)) {
  	    /* The URL isn't local, so lets drop through the rest of
  	     * this apache code, and continue with the usual REDIRECT
Index: httpd.h
===================================================================
RCS file: /usr/local/apache-cvs/apache/httpd.h,v
retrieving revision 1.8
diff -c -r1.8 httpd.h
*** 1.8	1996/08/17 22:58:27
--- httpd.h	1996/09/16 07:01:49
***************
*** 350,355 ****
--- 350,356 ----
  
    char *status_line;		/* Status line, if set by script */
    int status;			/* In any case */
+   char *error_msg;              /* An error message */
    
    /* Request method, two ways; also, protocol, etc..  Outside of protocol.c,
     * look, but don't touch.



Mime
View raw message