summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2012-11-07 09:29:49 +0100
committerStefan Fritsch <sf@apache.org>2012-11-07 09:29:49 +0100
commit0d734757ab7c08827a7090aca1daf120700aad43 (patch)
tree22f0f5ec6109ee8f31e33d29d53c809ce86df7a0 /server
parenttry to catch up if docs/log-message-tags/next-number is out of date (diff)
downloadapache2-0d734757ab7c08827a7090aca1daf120700aad43.tar.xz
apache2-0d734757ab7c08827a7090aca1daf120700aad43.zip
Make <If> sections in virtual host context fill in cmd->path so that
other directive notice that they are in a config section. This fixes LogLevel not working in <If> sections that are not in Location/Directory/File sections. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1406493 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/core.c b/server/core.c
index 82863460b5..818ddbfb51 100644
--- a/server/core.c
+++ b/server/core.c
@@ -2354,7 +2354,11 @@ static const char *ifsection(cmd_parms *cmd, void *mconfig, const char *arg)
arg = apr_pstrndup(cmd->temp_pool, arg, endp - arg);
-
+ /*
+ * Set a dummy value so that other directives notice that they are inside
+ * a config section.
+ */
+ cmd->path = "*If";
/* Only if not an .htaccess file */
if (!old_path) {
cmd->override = OR_ALL|ACCESS_CONF;