Merge pull request #5808 from Luotio/patch-1

Updated IIS Reverse proxy configuration to work with special characters.
This commit is contained in:
Simon L. 2025-01-06 10:54:22 +01:00 committed by GitHub
commit 5e7a2005e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -762,7 +762,8 @@ Add the following `web.config` file to the root of the site you created as the r
</system.web>
<system.webServer>
<rewrite>
<rules>
<!-- useOriginalURLEncoding needs to be set to false, otherwise IIS will double encode urls causing all files with spaces or special characters to be inaccessible -->
<rules useOriginalURLEncoding="false">
<!-- Force https -->
<rule name="Https" stopProcessing="true">
<match url="(.*)" />
@ -777,7 +778,8 @@ Add the following `web.config` file to the root of the site you created as the r
<conditions>
<add input="{HTTPS}" pattern="^ON$" />
</conditions>
<action type="Rewrite" url="http://nc-server-farm:11000/{UNENCODED_URL}" appendQueryString="false" />
<!-- 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" />
</rule>
</rules>
</rewrite>