Return-Path:
This module was experimental in Apache 1.1.x. Improvements and bugfixes
- were made in Apache v1.2.x and Apache v1.3.x, then the module underwent a
- major overhaul for Apache v2.0. The protocol support was upgraded to
- HTTP/1.1
, and filter support was enabled.
During the overhaul process,
Please note that the caching function present in
Apache's proxy features are divided into several modules in
+ addition to
If you need to use SSL when contacting remote servers, have a look at the
- SSLProxy*
directives in
In addition, extended features are provided by other modules.
+ Caching is provided by SSLProxy*
directives of
+
Apache can be configured in both a forward and - reverse proxy configuration.
+ reverse proxy mode. -A forward proxy is an intermediate system that enables a - browser to connect to a remote network to which it normally does not have - access. A forward proxy can also be used to cache data, reducing load on - the networks between the forward proxy and the remote webserver.
+An ordinary forward proxy is an intermediate + server that sits between the client and the origin + server. In order to get content from the origin server, + the client sends a request to the proxy naming the origin server + as the target and the proxy then requests the content from the + origin server and returns it to the client. The client must be + specially configured to use the forward proxy to access other + sites.
-Apache's
A typical usage of a forward proxy is to provide Internet
+ access to internal clients that are otherwise restricted by a
+ firewall. The forward proxy can also use caching (as provided
+ by
A reverse proxy is a webserver system that is capable of - serving webpages sourced from other webservers - in addition to webpages - on disk or generated dynamically by CGI - making these pages look like - they originated at the reverse proxy.
+The forward proxy is activated using the
When configured with the mod_cache module the reverse proxy can act as
- a cache for slower backend webservers. The reverse proxy can also enable
- advanced URL strategies and management techniques, allowing webpages
- served using different webserver systems or architectures to coexist
- inside the same URL space. Reverse proxy systems are also ideal for
- implementing centralised logging websites with many or diverse website
- backends. Complex multi-tier webserver systems can be constructed using an
-
A reverse proxy, by contrast, appears to the + client just like an ordinary web server. No special + configuration on the client is necessary. The client makes + ordinary requests for content in the name-space of the reverse + proxy. The reverse proxy then decides where to send those + requests, and returns the content as if it was itself the + origin.
-The reverse proxy is configured using the
A typical usage of a reverse proxy is to provide Internet + users access to a server that is behind a firewall. Reverse + proxies can also be used to balance load among several back-end + servers, or to provide caching for a slower back-end server. + In addition, reverse proxies can be used simply to bring + several servers into the same URL space.
+ +A reverse proxy is activated using the [P]
flag to the
The examples below are only a very basic idea to help you + get started. Please read the documentation on the individual + directives.
+ +In addition, if you wish to have caching enabled, consult
+ the documentation from
You can control who can access your proxy via the
When configuring a reverse proxy, access control takes on the
- attributes of the normal server
For more information on access control directives, see
+
Strictly limiting access is essential if you are using a
+ forward proxy (using the ProxyRequests Off
), access control is less
+ critical because clients can only contact the hosts that you
+ have specifically configured.
You probably don't have that particular file type defined as @@ -173,7 +213,7 @@ in my browser's URL line?
To log in to an FTP server by username and password, Apache uses different strategies. In absense of a user name and password in the URL - altogether, Apache sends an anomymous login to the FTP server, + altogether, Apache sends an anonymous login to the FTP server, i.e.,
If you're using the
An Apache proxy server situated in an intranet needs to forward
- external requests through the company's firewall. However, when it has to
+ external requests through the company's firewall (for this, configure
+ the
For circumstances where you have a application server which doesn't implement keepalives or HTTP/1.1 properly, there are 2 environment variables which when set send a HTTP/1.0 with no keepalive. These are set @@ -266,7 +306,6 @@ </Location>
When used inside a
If you require a more flexible reverse-proxy configuration, see the
[P]
flag.
When used inside a