httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Tue, 05 Aug 2003 12:12:21 GMT
nd          2003/08/05 05:12:21

  Modified:    modules/mappers mod_rewrite.c
  Log:
  make clear, that we *know* the RewriteLog directive, even if we
  don't support it. Thanks to kess for pointing this out.
  
  Revision  Changes    Path
  1.219     +15 -0     httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.218
  retrieving revision 1.219
  diff -u -r1.218 -r1.219
  --- mod_rewrite.c	4 Aug 2003 23:43:39 -0000	1.218
  +++ mod_rewrite.c	5 Aug 2003 12:12:21 -0000	1.219
  @@ -4659,6 +4659,16 @@
    * +-------------------------------------------------------+
    */
   
  +#ifdef REWRITELOG_DISABLED
  +static const char *fake_rewritelog(cmd_parms *cmd, void *dummy, const char *a1)
  +{
  +    return "RewriteLog and RewriteLogLevel are not support by this incarnation "
  +           "of mod_rewrite, because it was compiled using the "
  +           "-DREWRITELOG_DISABLED compiler option. You have to recompile "
  +           "mod_rewrite WITHOUT this option in order to use the rewrite log.";
  +}
  +#endif
  +
   static const command_rec command_table[] = {
       AP_INIT_FLAG(    "RewriteEngine",   cmd_rewriteengine,  NULL, OR_FILEINFO,
                        "On or Off to enable or disable (default) the whole "
  @@ -4682,6 +4692,11 @@
       AP_INIT_TAKE1(   "RewriteLogLevel", cmd_rewriteloglevel, NULL, RSRC_CONF,
                        "the level of the rewriting logfile verbosity "
                        "(0=none, 1=std, .., 9=max)"),
  +#else
  +    AP_INIT_TAKE1(   "RewriteLog", fake_rewritelog, NULL, RSRC_CONF,
  +                     "[DISABLED] the filename of the rewriting logfile"),
  +    AP_INIT_TAKE1(   "RewriteLogLevel", fake_rewritelog, NULL, RSRC_CONF,
  +                     "[DISABLED] the level of the rewriting logfile verbosity"),
   #endif
       { NULL }
   };
  
  
  

Mime
View raw message