
ProxyPassReverse Directive
ProxyPassReverse directive replaces the redirected URL sent by a proxied server during a 30x redirection response. In particular it replaces the Location, Content-Location, and URI HTTP headers in the proxied server's response. This directive can prevent proxy bypass if redirections with fully qualified URLs are returned by the proxied server.
This directive can be used multiple times in a rewrite configuration scope.
IMPORTANT: Although this directive is similar with the directive ProxyPassReverse in Apache mod_proxy, it is not fully compatible with it. IIS Mod-Rewrite implements with full compatibility only Apache mod_rewrite directives. This directive is implemented only for support reasons.
Configuration context
- per-server configurations
- per-virtual-host configurations
- per-directory configurations
- override (htaccess) configurations
Syntax
ProxyPassReverse path URL
It requires two arguments. path is the base path to which the redirection URL must be converted, such as "/store/books/". URL is the partial redirection URL that must be replaced, for instance "http://www.books.dom/titles/".
You can use this directive in conjunction with RewriteRule proxy [P] option to prevent a proxy bypass.
ProxyPassReverseCookieDomain Directive
ProxyPassReverseCookieDomain directive is similar to ProxyPassReverse except that it replaces the domain in the Set-Cookie headers.
This directive can be used multiple times in a rewrite configuration scope.
IMPORTANT: Although this directive is similar with the directive ProxyPassReverse in Apache mod_proxy, it is not fully compatible with it. IIS Mod-Rewrite implements with full compatibility only Apache mod_rewrite directives. This directive is implemented only for support reasons.
Configuration context
- per-server configurations
- per-virtual-host configurations
- per-directory configurations
- override (htaccess) configurations
Syntax
ProxyPassReverseCookieDomain internal_domain public_domain
It requires two arguments. internal_domain is the domain in Set-Cookie header to be replaced with public_domain
You can use this directive in conjunction with RewriteRule proxy [P] option to prevent incorrect cookie scope.
ProxyPassReverseCookiePath Directive
ProxyPassReverseCookiePath directive is similar to ProxyPassReverseCookieDomain except that it replaces the path in the Set-Cookie headers.
This directive can be used multiple times in a rewrite configuration scope.
IMPORTANT: Although this directive is similar with the directive ProxyPassReverse in Apache mod_proxy, it is not fully compatible with it. IIS Mod-Rewrite implements with full compatibility only Apache mod_rewrite directives. This directive is implemented only for support reasons.
Configuration context
- per-server configurations
- per-virtual-host configurations
- per-directory configurations
- override (htaccess) configurations
Syntax
ProxyPassReverseCookiePath internal_path public_path
It requires two arguments. internal_path is the path in Set-Cookie header to be replaced with public_path
You can use this directive in conjunction with RewriteRule proxy [P] option to prevent incorrect cookie scope.
|