Update reverse-proxy.md

Removed X_FORWARDED headers as they did not work as expected

Signed-off-by: Luotio <juha@luotio.net>
This commit is contained in:
Luotio 2025-01-01 12:45:50 +02:00 committed by GitHub
parent 38e2d51aa0
commit dc761e259a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -737,12 +737,6 @@ Add the following `web.config` file to the root of the site you created as the r
</conditions>
<!-- Note that {UNENCODED_URL} already contains starting slash, so we must add it directly after the port number without additional slash -->
<action type="Rewrite" url="http://nc-server-farm:11000{UNENCODED_URL}" appendQueryString="false" />
<!-- Setting forwarded headers is not strictly needed but it is a good practice -->
<serverVariables>
<set name="HTTP_X_FORWARDED_HOST" value="{HTTP_HOST}" />
<set name="HTTP_X_FORWARDED_SCHEMA" value="https" />
<set name="HTTP_X_FORWARDED_PROTO" value="https" />
</serverVariables>
</rule>
</rules>
</rewrite>