From: Joshua Slive
Date: Tue, 31 Jul 2007 20:13:50 +0000 (+0000)
Subject: Docuemnt the x- headers added by mod_proxy_http.
X-Git-Tag: 2.3.0~1668
X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2ac1574418b61827657e43c92336341e95ba2d62;p=thirdparty%2Fapache%2Fhttpd.git
Docuemnt the x- headers added by mod_proxy_http.
PR: 41097
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561477 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_proxy.html.en b/docs/manual/mod/mod_proxy.html.en
index 8b7e47f7ead..886ca4acd9b 100644
--- a/docs/manual/mod/mod_proxy.html.en
+++ b/docs/manual/mod/mod_proxy.html.en
@@ -96,6 +96,7 @@
Intranet Proxy
Protocol Adjustments
Request Bodys
+
Reverse Proxy Request Headers
See also
mod_cache
@@ -286,7 +287,37 @@
proxy-sendchunked minimizes resource usage by using
chunked encoding.
-
+ 
+
+
+
+
When acting in a reverse-proxy mode (using the ProxyPass directive, for example),
+ mod_proxy_http adds several request headers in
+ order to pass information to the origin server. These headers
+ are:
+
+
+ X-Forwarded-For
+ - The IP address of the client.
+ X-Forwarded-Host
+ - The original host requested by the client in the
Host
+ HTTP request ehader.
+ X-Forwarded-Server
+ - The hostname of the proxy server.
+
+
+
Be careful when using these headers on the origin server, since
+ they will contain more than one (comma-separated) value if the
+ original request already contained one of these headers. For
+ example, you can use %{X-Forwarded-For}i in the log
+ format string of the origin server to log the original clients IP
+ address, but you may get more than one address if the request
+ passes through several proxies.
+
+
See also the ProxyPreserveHost and ProxyVia directives, which control
+ other request headers.
+
+

diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml
index 8dd7d3ef5fb..34c795ae402 100644
--- a/docs/manual/mod/mod_proxy.xml
+++ b/docs/manual/mod/mod_proxy.xml
@@ -262,6 +262,40 @@
+
+
+
Proxy
Container for directives applied to proxied resources