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

Article:TECH183927  |  Created: 2012-03-15  |  Updated: 2013-09-09  |  Article URL http://www.symantec.com/docs/TECH183927
Article Type
Technical Solution

Product(s)

Environment

Issue



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.


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").


Environment



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


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.


Solution



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.




Article URL http://www.symantec.com/docs/TECH183927


Terms of use for this information are found in Legal Notices