HTTP 500.53 URL rewrite module error for DXC Service

  • Updated

500.53 URL rewrite module error with message Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ('gzip') with Application Insights enabled.

Add and/or change either doDynamicCompression or doStaticCompression or both to false in urlCompression element in web.config.

Ex:
<configuration>
<system.webServer>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>
For DXC Service clients compression doesn't need to be enabled for the response to end user to be compressed as CDN provider will compress the response regardless for common content-types.
But only do this change if you experience this error.
Ref: https://support.cloudflare.com/hc/en-us/articles/200168396