Lines 1517-1522
will rewrite a cookie with backend path
Link Here
|
1517 |
</directivesynopsis> |
1517 |
</directivesynopsis> |
1518 |
|
1518 |
|
1519 |
<directivesynopsis> |
1519 |
<directivesynopsis> |
|
|
1520 |
<name>ProxyPassReverseCookiePathMatch</name> |
1521 |
<description>Adjusts the Path string in Set-Cookie headers from a reverse- |
1522 |
proxied server using a regular expression</description> |
1523 |
<syntax>ProxyPassReverseCookiePathMatch <var>regex</var> |
1524 |
<var>public-path</var> [<var>interpolate</var>]</syntax> |
1525 |
<contextlist><context>server config</context><context>virtual host</context> |
1526 |
<context>directory</context> |
1527 |
</contextlist> |
1528 |
<usage> |
1529 |
<p> |
1530 |
This directive is equivalent to |
1531 |
<directive module="mod_proxy">ProxyPassReverseCookiePath</directive>, |
1532 |
but makes use of <glossary ref="regex">regular expressions</glossary> |
1533 |
instead of simple prefix matching. In addition, <var>public-path</var> is |
1534 |
subject to parenthesized matches substitution, thus allowing a dynamic path |
1535 |
mapping. |
1536 |
</p> |
1537 |
<p> |
1538 |
As a special case, if <var>public-path</var> is set to <code>!</code>, the |
1539 |
cookie path is left unchanged: this can be used to disable matching by the |
1540 |
subsequent <directive module="mod_proxy">ProxyPassReverseCookie</directive>/ |
1541 |
<directive module="mod_proxy">ProxyPassReverseCookiePath</directive> directives. |
1542 |
</p> |
1543 |
<p> |
1544 |
In example, the following statement maps the path prefix (where |
1545 |
<directive module="mod_proxy">ProxyPassReverseCookie</directive> would have |
1546 |
replaced the full path), keeping the path trailer: |
1547 |
</p> |
1548 |
<highlight language="config"> |
1549 |
ProxyPassReverseCookiePathMatch ^/(.*)$ /foo/$1 |
1550 |
</highlight> |
1551 |
</usage> |
1552 |
</directivesynopsis> |
1553 |
|
1554 |
<directivesynopsis> |
1520 |
<name>ProxyBlock</name> |
1555 |
<name>ProxyBlock</name> |
1521 |
<description>Words, hosts, or domains that are banned from being |
1556 |
<description>Words, hosts, or domains that are banned from being |
1522 |
proxied</description> |
1557 |
proxied</description> |
Lines 1879-1893
header for proxied requests</description
Link Here
|
1879 |
<usage> |
1914 |
<usage> |
1880 |
<p>This directive, together with the <var>interpolate</var> argument to |
1915 |
<p>This directive, together with the <var>interpolate</var> argument to |
1881 |
<directive>ProxyPass</directive>, <directive>ProxyPassReverse</directive>, |
1916 |
<directive>ProxyPass</directive>, <directive>ProxyPassReverse</directive>, |
1882 |
<directive>ProxyPassReverseCookieDomain</directive> and |
1917 |
<directive>ProxyPassReverseCookieDomain</directive>, |
1883 |
<directive>ProxyPassReverseCookiePath</directive> |
1918 |
<directive>ProxyPassReverseCookiePath</directive> and |
|
|
1919 |
<directive>ProxyPassReverseCookiePathMatch</directive> |
1884 |
enables reverse proxies to be dynamically |
1920 |
enables reverse proxies to be dynamically |
1885 |
configured using environment variables, which may be set by |
1921 |
configured using environment variables, which may be set by |
1886 |
another module such as <module>mod_rewrite</module>. |
1922 |
another module such as <module>mod_rewrite</module>. |
1887 |
It affects the <directive>ProxyPass</directive>, |
1923 |
It affects the <directive>ProxyPass</directive>, |
1888 |
<directive>ProxyPassReverse</directive>, |
1924 |
<directive>ProxyPassReverse</directive>, |
1889 |
<directive>ProxyPassReverseCookieDomain</directive>, and |
1925 |
<directive>ProxyPassReverseCookieDomain</directive>, |
1890 |
<directive>ProxyPassReverseCookiePath</directive> directives, |
1926 |
<directive>ProxyPassReverseCookiePath</directive> and |
|
|
1927 |
<directive>ProxyPassReverseCookiePathMatch</directive> directives, |
1891 |
and causes them to substitute the value of an environment |
1928 |
and causes them to substitute the value of an environment |
1892 |
variable <code>varname</code> for the string <code>${varname}</code> |
1929 |
variable <code>varname</code> for the string <code>${varname}</code> |
1893 |
in configuration directives (if the <var>interpolate</var> option is set).</p> |
1930 |
in configuration directives (if the <var>interpolate</var> option is set).</p> |