]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Include ProxyPreserveHost directive in Apache's proxy doc
authorArthurHoaro <arthur@hoa.ro>
Thu, 5 Jul 2018 19:13:09 +0000 (21:13 +0200)
committerArthurHoaro <arthur@hoa.ro>
Thu, 5 Jul 2018 19:13:09 +0000 (21:13 +0200)
doc/md/docker/reverse-proxy-configuration.md

index 6066140eb77be13adba84d5673fe2fcd1d5d6180..d44aa39ff01151eb1ae253bbd57dc6078c654048 100644 (file)
@@ -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
 <VirtualHost *:80>
     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/
 </VirtualHost>