proxy: add preserve host header (#463)

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
Bobby DeSimone 2020-01-22 21:03:22 -08:00 committed by GitHub
parent 34e35b7168
commit 8956bf4411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 90 additions and 72 deletions

View file

@ -759,6 +759,17 @@ Set Request Headers allows you to set static values for given request headers. T
X-Your-favorite-authenticating-Proxy: "Pomerium"
```
### Preserve Host Header
- `yaml`/`json` setting: `preserve_host_header`
- Type: `bool`
- Optional
- Default: `false`
When enabled, this option will pass the host header from the incoming request to the proxied host, instead of the destination hostname.
See [ProxyPreserveHost](http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypreservehost).
[base64 encoded]: https://en.wikipedia.org/wiki/Base64
[environmental variables]: https://en.wikipedia.org/wiki/Environment_variable
[identity provider]: ./identity-providers.md