summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndré Malo <nd@apache.org>2004-01-14 00:41:25 +0000
committerAndré Malo <nd@apache.org>2004-01-14 00:41:25 +0000
commitd472c53a87073fcda3c0bc44a7f67e3e3f5f921c (patch)
tree80850045e4eff7f8e92ff5828f6f9f93a8bf2da2 /modules
parentafc28afde4e4be5ea06c388cd4dfceabfc45850c (diff)
downloadhttpd-d472c53a87073fcda3c0bc44a7f67e3e3f5f921c.tar.gz
allow proxying of directoryindex'd resources
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/mappers/mod_dir.c4
1 files changed, 3 insertions, 1 deletions
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;
}