-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplicationHost.xdt
More file actions
15 lines (15 loc) · 919 Bytes
/
Copy pathapplicationHost.xdt
File metadata and controls
15 lines (15 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0"?>
<!-- this file must be uploaded to the /site folder of the Azure web site, so cannot be pushed with Git: https://ppolyzos.com/2015/10/26/reverse-proxy-functionality-in-azure-web-sites/ -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<proxy xdt:Transform="InsertIfMissing" enabled="true" preserveHostHeader="false" reverseRewriteHostInResponseHeaders="false" />
<rewrite>
<allowedServerVariables>
<add name="HTTP_X_ORIGINAL_HOST" xdt:Transform="Insert" />
<add name="HTTP_X_UNPROXIED_URL" xdt:Transform="Insert" />
<add name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" xdt:Transform="Insert" />
<add name="HTTP_ACCEPT_ENCODING" xdt:Transform="Insert" />
</allowedServerVariables>
</rewrite>
</system.webServer>
</configuration>