Hi;
I want to redirect the internet traffice for http://www.company.com/uat to my internal test web serverhttp://wwwtest.company.local:8080 but my script below direct me to the web site which is assigned port 80 on hosthttp://wwwtest.company.local, why? I am very happy if anyone of you can point me out the problem, I am new to configure the ARR and URL Rewrite.
I have a ARR server in front the internal web server. I created a site on ARR server and created a URL Rewrite inbound rule on ARR IIS.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<outboundRules>
<rule name="OutboundReverseProxy" preCondition="IsHTML">
<match filterByTags="A" pattern="^/(.*)" />
<conditions>
<add input="{URL}" pattern="^/(uat|dev)/.\*" />
</conditions>
<action type="Rewrite" value="/{C:1}/{R:1}" />
</rule>
<preConditions>
<preCondition name="IsHTML">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
<rules>
<rule name="uat_inbound" stopProcessing="true">
<match url="(.*)/uat" />
<conditions>
<add input="{HTTP_HOST}" pattern="wwwtest.company.local" />
</conditions>
<action type="Redirect" url="http://wwwtest.company.local:8080" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>