--- modules/mappers/mod_rewrite.c.orig 2004-04-01 14:07:59.000000000 +0200 +++ modules/mappers/mod_rewrite.c 2004-04-01 14:08:10.000000000 +0200 @@ -1203,7 +1203,7 @@ } /* now make sure the request gets handled by the proxy handler */ - r->proxyreq = PROXYREQ_REVERSE; + if (r->proxyreq != PROXYREQ_PROXY) r->proxyreq = PROXYREQ_REVERSE; r->handler = "proxy-server"; rewritelog(r, 1, "go-ahead with proxy request %s [OK]", @@ -1465,7 +1465,7 @@ } /* now make sure the request gets handled by the proxy handler */ - r->proxyreq = PROXYREQ_REVERSE; + if (r->proxyreq != PROXYREQ_PROXY) r->proxyreq = PROXYREQ_REVERSE; r->handler = "proxy-server"; rewritelog(r, 1, "[per-dir %s] go-ahead with proxy request "