From: Rich Bowen Date: Fri, 11 Nov 2011 17:06:40 +0000 (+0000) Subject: Patch from Luke Meyer, clarifies usage of ProxyPassReverseCookiePath directive. As... X-Git-Tag: 2.5.0-alpha~7933 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdd0af17de142684448d87e8d982ba357f7da0bd;p=thirdparty%2Fapache%2Fhttpd.git Patch from Luke Meyer, clarifies usage of ProxyPassReverseCookiePath directive. As per bug #51126 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200955 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index d694301e4ae..3caea11b473 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -1329,6 +1329,8 @@ rewriting headers that are a URL, this rewrites the domain string in Set-Cookie headers.

+ + ProxyPassReverseCookiePath Adjusts the Path string in Set-Cookie headers from a reverse- @@ -1339,10 +1341,23 @@ proxied server directory -

Usage is basically similar to -ProxyPassReverse, but instead of -rewriting headers that are a URL, this rewrites the path -string in Set-Cookie headers.

+

+Useful in conjunction with +ProxyPassReverse +in situations where backend URL paths are mapped to public paths on the +reverse proxy. This directive rewrites the path string in +Set-Cookie headers. If the beginning of the cookie path matches +internal-path, the cookie path will be replaced with +public-path. +

+In the example given with +ProxyPassReverse, the directive: + + ProxyPassReverseCookiePath / /mirror/foo/ + +will rewrite a cookie with backend path / (or +/example or, in fact, anything) to /mirror/foo/. +