X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2Fmd%2Fdocker%2Freverse-proxy-configuration.md;h=e53c9422dae8d2810cd4fa3c70034ebcf4caff27;hb=6128ab6a55430a2b705be31ff417c0c552a0db1f;hp=6066140eb77be13adba84d5673fe2fcd1d5d6180;hpb=1a2c5ddeb5587da6abc6c335e27f46a00e52c3d3;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/md/docker/reverse-proxy-configuration.md b/doc/md/docker/reverse-proxy-configuration.md index 6066140e..e53c9422 100644 --- a/doc/md/docker/reverse-proxy-configuration.md +++ b/doc/md/docker/reverse-proxy-configuration.md @@ -13,12 +13,14 @@ 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 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 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/