From e7f4a03d24470ecf329d31375bceab2ad98f1a0d Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 5 Jul 2018 21:13:09 +0200 Subject: Include ProxyPreserveHost directive in Apache's proxy doc --- doc/md/docker/reverse-proxy-configuration.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/md/docker/reverse-proxy-configuration.md b/doc/md/docker/reverse-proxy-configuration.md index 6066140e..d44aa39f 100644 --- a/doc/md/docker/reverse-proxy-configuration.md +++ b/doc/md/docker/reverse-proxy-configuration.md @@ -19,6 +19,8 @@ The following HTTP headers are set by using the `ProxyPass` directive: - `X-Forwarded-Host` - `X-Forwarded-Server` +The original `SERVER_NAME` can be send to the proxied host using the `ProxyPreserveHost` directive. + ```apache ServerName shaarli.domain.tld @@ -37,7 +39,8 @@ The following HTTP headers are set by using the `ProxyPass` directive: CustomLog /var/log/apache2/shaarli-access.log combined RequestHeader set X-Forwarded-Proto "https" - + ProxyPreserveHost On + ProxyPass / http://127.0.0.1:10080/ ProxyPassReverse / http://127.0.0.1:10080/ -- cgit v1.2.3 From 5045585f24543efd1ac507e37a854219b1328a9a Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 8 Jul 2018 19:54:48 +0200 Subject: doc: reverse proxy config: proxypreservehost: wording, link to apache documentation, typo --- doc/md/docker/reverse-proxy-configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/md/docker/reverse-proxy-configuration.md b/doc/md/docker/reverse-proxy-configuration.md index d44aa39f..e53c9422 100644 --- a/doc/md/docker/reverse-proxy-configuration.md +++ b/doc/md/docker/reverse-proxy-configuration.md @@ -13,13 +13,13 @@ This guide assumes that: - [mod_proxy](https://httpd.apache.org/docs/2.4/mod/mod_proxy.html) - [Reverse Proxy Request Headers](https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#x-headers) -The following HTTP headers are set by using the `ProxyPass` directive: +The following HTTP headers are set when the `ProxyPass` directive is set: - `X-Forwarded-For` - `X-Forwarded-Host` - `X-Forwarded-Server` -The original `SERVER_NAME` can be send to the proxied host using the `ProxyPreserveHost` directive. +The original `SERVER_NAME` can be sent to the proxied host by setting the [`ProxyPreserveHost`](https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#ProxyPreserveHost) directive to `On`. ```apache -- cgit v1.2.3