diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-07-05 21:13:09 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-07-05 21:13:09 +0200 |
commit | e7f4a03d24470ecf329d31375bceab2ad98f1a0d (patch) | |
tree | e39ed1b90e0edfbdc1be745fae5cf35ad9cac010 /doc/md/docker | |
parent | edb4a4d9c9fbc01d67ee8d095fe26648714e2285 (diff) | |
download | Shaarli-e7f4a03d24470ecf329d31375bceab2ad98f1a0d.tar.gz Shaarli-e7f4a03d24470ecf329d31375bceab2ad98f1a0d.tar.zst Shaarli-e7f4a03d24470ecf329d31375bceab2ad98f1a0d.zip |
Include ProxyPreserveHost directive in Apache's proxy doc
Diffstat (limited to 'doc/md/docker')
-rw-r--r-- | doc/md/docker/reverse-proxy-configuration.md | 5 |
1 files changed, 4 insertions, 1 deletions
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: | |||
19 | - `X-Forwarded-Host` | 19 | - `X-Forwarded-Host` |
20 | - `X-Forwarded-Server` | 20 | - `X-Forwarded-Server` |
21 | 21 | ||
22 | The original `SERVER_NAME` can be send to the proxied host using the `ProxyPreserveHost` directive. | ||
23 | |||
22 | ```apache | 24 | ```apache |
23 | <VirtualHost *:80> | 25 | <VirtualHost *:80> |
24 | ServerName shaarli.domain.tld | 26 | ServerName shaarli.domain.tld |
@@ -37,7 +39,8 @@ The following HTTP headers are set by using the `ProxyPass` directive: | |||
37 | CustomLog /var/log/apache2/shaarli-access.log combined | 39 | CustomLog /var/log/apache2/shaarli-access.log combined |
38 | 40 | ||
39 | RequestHeader set X-Forwarded-Proto "https" | 41 | RequestHeader set X-Forwarded-Proto "https" |
40 | 42 | ProxyPreserveHost On | |
43 | |||
41 | ProxyPass / http://127.0.0.1:10080/ | 44 | ProxyPass / http://127.0.0.1:10080/ |
42 | ProxyPassReverse / http://127.0.0.1:10080/ | 45 | ProxyPassReverse / http://127.0.0.1:10080/ |
43 | </VirtualHost> | 46 | </VirtualHost> |