Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

URL Rewrite redirect to the port 80 not port 8080 on Internal web server

$
0
0

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>


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>