]> granicus.if.org Git - apache/commitdiff
make clear, that we *know* the RewriteLog directive, even if we
authorAndré Malo <nd@apache.org>
Tue, 5 Aug 2003 12:12:21 +0000 (12:12 +0000)
committerAndré Malo <nd@apache.org>
Tue, 5 Aug 2003 12:12:21 +0000 (12:12 +0000)
don't support it. Thanks to kess for pointing this out.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100905 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index a31340d7c8c89f9fb61b8142273aadcf8f554cda..56d331c73dfab395e69fd42b61a3e5577af537e7 100644 (file)
@@ -4659,6 +4659,16 @@ static int handler_redirect(request_rec *r)
  * +-------------------------------------------------------+
  */
 
+#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 @@ static const command_rec command_table[] = {
     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 }
 };