From d472c53a87073fcda3c0bc44a7f67e3e3f5f921c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Wed, 14 Jan 2004 00:41:25 +0000 Subject: [PATCH] allow proxying of directoryindex'd resources git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102332 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ modules/mappers/mod_dir.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.40.0