From: André Malo Date: Wed, 14 Jan 2004 00:41:25 +0000 (+0000) Subject: allow proxying of directoryindex'd resources X-Git-Tag: pre_ajp_proxy~800 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d472c53a87073fcda3c0bc44a7f67e3e3f5f921c;p=apache allow proxying of directoryindex'd resources git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102332 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 2c16539556..178a964ddf 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) Allow proxying of resources that are invoked via DirectoryIndex. + PR 14648. [André Malo] + *) mod_rewrite: Allow proxying and RewriteRules in directory context for subrequests. PR 14648, 15114. [André Malo] diff --git a/modules/mappers/mod_dir.c b/modules/mappers/mod_dir.c index acb1ac7da0..0acefbe529 100644 --- a/modules/mappers/mod_dir.c +++ b/modules/mappers/mod_dir.c @@ -201,7 +201,9 @@ static int fixup_dir(request_rec *r) rr = ap_sub_req_lookup_uri(name_ptr, r, NULL); /* XXX: (filetype == APR_REG) - we can't use a non-file index??? */ - if (rr->status == HTTP_OK && rr->finfo.filetype == APR_REG) { + if ( rr->status == HTTP_OK + && ( (rr->handler && !strcmp(rr->handler, "proxy-server")) + || rr->finfo.filetype == APR_REG)) { ap_internal_fast_redirect(rr, r); return OK; }