From: Vincent Deffontaines Date: Sun, 14 Oct 2012 12:06:10 +0000 (+0000) Subject: Adding support for the 'disabled' keyword to FallbackResource X-Git-Tag: 2.4.4~492 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79969d819c3e7eadc218ff33ab59c1f98b59ff39;p=apache Adding support for the 'disabled' keyword to FallbackResource git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1398064 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_dir.c b/modules/mappers/mod_dir.c index 52d0273e5d..4364ff9551 100644 --- a/modules/mappers/mod_dir.c +++ b/modules/mappers/mod_dir.c @@ -162,7 +162,7 @@ static int fixup_dflt(request_rec *r) int error_notfound = 0; name_ptr = d->dflt; - if (name_ptr == NULL) { + if ((name_ptr == NULL) || !(strcasecmp(name_ptr,"disabled"))){ return DECLINED; } /* XXX: if FallbackResource points to something that doesn't exist,