Skip to content

Instantly share code, notes, and snippets.

@cakriwut
Created October 23, 2016 13:17
Show Gist options
  • Save cakriwut/f8017c260030d2731ceac15a15b2b19b to your computer and use it in GitHub Desktop.
Save cakriwut/f8017c260030d2731ceac15a15b2b19b to your computer and use it in GitHub Desktop.
Configure IIS ARR in Azure Web Site
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<proxy xdt:Transform="InsertIfMissing" enabled="true" preserveHostHeader="false"
reverseRewriteHostInResponseHeaders="false" arrResponseHeader="false"/>
<rewrite>
<allowedServerVariables>
<add name="HTTP_ACCEPT_ENCODING" xdt:Transform="Insert" />
<add name="HTTP_X_ACCEPT_ENCODING" xdt:Transform="Insert" />
<add name="HTTP_X_ORIGINAL_HOST" xdt:Transform="Insert" />
</allowedServerVariables>
</rewrite>
<!--
<httpCompression xdt:Transform="SetAttributes(noCompressionForProxies)" noCompressionForProxies="false" >
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" xdt:Transform="InsertIfMissing" staticCompressionLevel="9" dynamicCompressionLevel="7" />
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" staticCompressionLevel="9" dynamicCompressionLevel="7" xdt:Transform="Replace" xdt:Locator="Match(name)" />
</httpCompression>
-->
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment