doc: reverse proxy config: proxypreservehost: wording, link to apache documentation, typo

This commit is contained in:
nodiscc 2018-07-08 19:54:48 +02:00 committed by GitHub
parent e7f4a03d24
commit 5045585f24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,13 +13,13 @@ This guide assumes that:
- [mod_proxy](https://httpd.apache.org/docs/2.4/mod/mod_proxy.html) - [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) - [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-For`
- `X-Forwarded-Host` - `X-Forwarded-Host`
- `X-Forwarded-Server` - `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 ```apache
<VirtualHost *:80> <VirtualHost *:80>