02-03-2020, 04:24 PM
Alexandre,
I finally got the web Config file for the rewrite rules on the reverse proxy server. I hope this will help explain why IW 15.0.17 works and IW 15.1.9 does not work.
Please let me know if there is anything else I can provide to help resolve this issue.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://10.10.250.38/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img, Script, CustomTags" customTags="literal" pattern="^http(s)?://(v-PercontiSrv01.ci.palm-coast.fl.us|10.10.250.38)/(.*)" />
<action type="Rewrite" value="http{R:1}://cdpservices.palmcoastgov.com/{R:3}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1" logicalGrouping="MatchAny">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/xml" />
</preCondition>
</preConditions>
<customTags>
<tags name="literal" />
</customTags>
</outboundRules>
</rewrite>
<httpErrors errorMode="DetailedLocalOnly" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
I finally got the web Config file for the rewrite rules on the reverse proxy server. I hope this will help explain why IW 15.0.17 works and IW 15.1.9 does not work.
Please let me know if there is anything else I can provide to help resolve this issue.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://10.10.250.38/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img, Script, CustomTags" customTags="literal" pattern="^http(s)?://(v-PercontiSrv01.ci.palm-coast.fl.us|10.10.250.38)/(.*)" />
<action type="Rewrite" value="http{R:1}://cdpservices.palmcoastgov.com/{R:3}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1" logicalGrouping="MatchAny">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/xml" />
</preCondition>
</preConditions>
<customTags>
<tags name="literal" />
</customTags>
</outboundRules>
</rewrite>
<httpErrors errorMode="DetailedLocalOnly" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" />
</requestFiltering>
</security>
</system.webServer>
</configuration>