From: Rainer Jung Date: Tue, 31 Jan 2012 18:20:53 +0000 (+0000) Subject: Backports from trunk: X-Git-Tag: 2.4.1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe56266683663a75c140ad4e973fb58105e64b52;p=apache Backports from trunk: - r1200955: Patch from Luke Meyer, clarifies usage of ProxyPassReverseCookiePath directive. As per bug #51126 - r1200968: A little clarification about variable interpolation, as requested in bug #51125 - r1202453: Fix xml git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1238730 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 7cd2c91c2c..75e65f46a4 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -1331,6 +1331,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- @@ -1341,10 +1343,25 @@ 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/. +

@@ -1712,7 +1729,7 @@ header for proxied requests ProxyPassReverseCookiePath directives, and causes them to substitute the value of an environment variable varname for the string ${varname} - in configuration directives.

+ in configuration directives (if the interpolate option is set).

Keep this turned off (for server performance) unless you need it!