1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

add no-proxy envvar for mod_proxy

replacement for ProxyPass /path ! when ProxyPass is in
location context.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781328 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2017-02-01 22:33:10 +00:00
parent e2e6e5194f
commit 37c5465898
3 changed files with 23 additions and 1 deletions

View File

@@ -781,6 +781,10 @@ static int proxy_trans(request_rec *r)
|| !r->uri || r->uri[0] != '/') {
return DECLINED;
}
if (apr_table_get(r->subprocess_env, "no-proxy")) {
return DECLINED;
}
/* XXX: since r->uri has been manipulated already we're not really
* compliant with RFC1945 at this point. But this probably isn't