From: Ralf S. Engelschall Date: Mon, 23 Feb 1998 08:04:09 +0000 (+0000) Subject: Add the ProxyPassReverse directive which allows Apache to be X-Git-Tag: APACHE_BIG_SYMBOL_RENAME_POST~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb0f7d6b75c2b072cbae2870e7b80ac871f8298d;p=apache Add the ProxyPassReverse directive which allows Apache to be used as a full-featured Reverse Proxy in front of a backend webserver cluster. Submitted by: Ralf S. Engelschall Reviewed by: Martin Kraemer, Ralf S. Engelschall git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@80296 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.html b/docs/manual/mod/mod_proxy.html index bbeca97016..b8c6e3ca09 100644 --- a/docs/manual/mod/mod_proxy.html +++ b/docs/manual/mod/mod_proxy.html @@ -43,6 +43,7 @@ and other protocols.
  • ProxyRequests
  • ProxyRemote
  • ProxyPass +
  • ProxyPassReverse
  • ProxyBlock
  • NoProxy
  • ProxyDomain @@ -200,6 +201,71 @@ internally converted into a proxy request to
    +

    ProxyPassReverse

    +Syntax: ProxyPassReverse <path> <url>
    +Default: None
    +Context: server config, virtual host
    +Override: Not applicable
    +Status: Base
    +Module: mod_proxy
    +Compatibility: ProxyPassReverse is only available in +Apache 1.3b6 and later.

    + +This directive lets Apache adjust the URL in the Location header on +HTTP redirect responses. For instance this is essential when Apache is used as +a reverse proxy to avoid by-passing the reverse proxy because of HTTP +redirects on the backend servers which stay behind the reverse proxy. +

    +<path> is the name of a local virtual path.
    +<url> is a partial URL for the remote server - the same way they are +used for the ProxyPass directive. +

    +Example:
    +Suppose the local server has address http://wibble.org/; then +

    +   ProxyPass         /mirror/foo http://foo.com
    +   ProxyPassReverse  /mirror/foo http://foo.com
    +
    +will not only cause a local request for the +<http://wibble.org/mirror/foo/bar> to be internally +converted into a proxy request to <http://foo.com/bar> (the +functionality ProxyPass provides here). It also takes care of +redirects the server foo.com sends: when http://foo.com/bar is +redirected by him to http://foo.com/quux Apache adjusts this to +http://wibble.org/mirror/foo/quux before forwarding the HTTP +redirect response to the client. +

    +Note that this ProxyPassReverse directive can also by used in +conjunction with the proxy pass-through feature ("RewriteRule ... +[P]") from +mod_rewrite because its doesn't depend on a corresponding +ProxyPass directive. + +


    +

    ProxyBlock