Reverse Proxy setup returns a HTTP Error 500.52 - URL Rewrite Module Error
search cancel

Reverse Proxy setup returns a HTTP Error 500.52 - URL Rewrite Module Error

book

Article ID: 156079

calendar_today

Updated On:

Products

Mobile Management

Issue/Introduction

In a Mobile Management installation with an IIS ARR Reverse Proxy configured, the response from one or more of the pages is a 500.52 URL Rewrite Module Error.

HTTP Error 500.52 - URL Rewrite Module Error.
Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip").

Cause

The default for many IIS installations is to include compression, however, the default configuration of the Reverse Proxy is unable to decode and reencode the compressed response from the proxied server.

Resolution

On the Reverse Proxy server, edit the web.config file found at C:\inetpub\wwwroot, and for the inbound rule(s), add the following bold content:

 <rule name="ReverseProxyInboundRule2" stopProcessing="true">
  <match url="(certsrv/.*)" />
  <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
  <action type="Rewrite" url="http://scepserver.domain.com/{R:1}" logRewrittenUrl="true" />
   <serverVariables>
    <set name="HTTP_ACCEPT_ENCODING" value="" />
   </serverVariables>
 </rule>

This might be needed for one or more of the rules, depending on where the error is seen, and the environment configuration.


Applies To

Symantec Mobile Management
Reverse Proxy server running Windows Server 2008 R2 with IIS 7.5 and Application Request Routing (ARR).