From: Rich Bowen Date: Fri, 11 Nov 2011 17:03:36 +0000 (+0000) Subject: Patch from Luke Meyer, clarifies usage of ProxyPassReverseCookiePath directive. As... X-Git-Tag: 2.2.22~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e8ed3988e5601930eb6371b33a5626f5a64bd1;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/branches/2.2.x@1200953 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 66862a8cc59..0cd4a5b8f31 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -1231,6 +1231,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- @@ -1241,10 +1243,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/. +