You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Mark Cox <mj...@hyperreal.com> on 1996/04/04 17:10:27 UTC

cvs commit: apache/conf srm.conf-dist

mjc         96/04/04 07:10:27

  Modified:    src       mod_status.c httpd.h
               conf      srm.conf-dist
  Log:
  Allow the status module to use the new "AddHandler" code as well as its
  old magic-type.
  
  Revision  Changes    Path
  1.9       +1 -2      apache/src/mod_status.c
  
  Index: mod_status.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_status.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -C3 -r1.8 -r1.9
  *** mod_status.c	1996/04/02 10:16:33	1.8
  --- mod_status.c	1996/04/04 15:10:24	1.9
  ***************
  *** 82,89 ****
    #include <time.h>
    #include "scoreboard.h"
    
  - #define STATUS_MAGIC_TYPE "application/x-httpd-status"
  - 
    module status_module;
    
    /* Format the number of bytes nicely */
  --- 82,87 ----
  ***************
  *** 337,342 ****
  --- 335,341 ----
    
    handler_rec status_handlers[] = {
    { STATUS_MAGIC_TYPE, status_handler },
  + { "server-status", status_handler },
    { NULL }
    };
    
  
  
  
  1.15      +1 -0      apache/src/httpd.h
  
  Index: httpd.h
  ===================================================================
  RCS file: /export/home/cvs/apache/src/httpd.h,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -C3 -r1.14 -r1.15
  *** httpd.h	1996/03/31 01:07:00	1.14
  --- httpd.h	1996/04/04 15:10:25	1.15
  ***************
  *** 252,257 ****
  --- 252,258 ----
    #define MAP_FILE_MAGIC_TYPE "application/x-type-map"
    #define ASIS_MAGIC_TYPE "httpd/send-as-is"
    #define DIR_MAGIC_TYPE "httpd/unix-directory"
  + #define STATUS_MAGIC_TYPE "application/x-httpd-status"
    
    /* Just in case your linefeed isn't the one the other end is expecting. */
    #define LF 10
  
  
  
  1.4       +4 -0      apache/conf/srm.conf-dist
  
  Index: srm.conf-dist
  ===================================================================
  RCS file: /export/home/cvs/apache/conf/srm.conf-dist,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -C3 -r1.3 -r1.4
  *** srm.conf-dist	1996/03/31 01:06:57	1.3
  --- srm.conf-dist	1996/04/04 15:10:26	1.4
  ***************
  *** 167,172 ****
  --- 167,176 ----
    # To enable type maps, you might want to use
    #AddHandler type-map var
    
  + # If you are using the status module and don't care if anyone else
  + # can see your status information you can use
  + #AddHandler server-status status
  + 
    # Action lets you define media types that will execute a script whenever
    # a matching file is called. This eliminates the need for repeated URL
    # pathnames for oft-used CGI file processors.