From: André Malo Date: Tue, 5 Aug 2003 12:12:21 +0000 (+0000) Subject: make clear, that we *know* the RewriteLog directive, even if we X-Git-Tag: pre_ajp_proxy~1296 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f2835b6a2fccb578328a5498c859cd555737890;p=apache make clear, that we *know* the RewriteLog directive, even if we 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 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index a31340d7c8..56d331c73d 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -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 } };