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

iis url rewrite reverse proxy issue with ports

$
0
0

I am running IIS as a reverse proxy for my servers.

I have a website running on port 1025 and reverse proxy works fine when mapping port 80 pages from the backend. So the first rule works fine.

My problem is that my backend server has a page running on port 8080.

I created a new application on my website and added a new URL rewrite:

<rewrite>
            <rules>
                <rule name="ReverseProxyInboundRule2" stopProcessing="true">
                    <match url="(.*)" />
                    <action type="Rewrite" url="http://10.44.189.28:8080/eFpWorkplace/{R:1}" />
                </rule>
            </rules>
            <outboundRules>
                <rule name="ReverseProxyOutboundRule2" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://10.44.189.28:8080/eFpWorkplace/(.*)" />
                    <action type="Rewrite" value="http{R:1}://proxy-1914101111.eu-west-1.elbxxxxxxxx.com/wwp/eFpWorkplace{R:2}" />
                </rule>
            </outboundRules>
        </rewrite>

so I am mapping http://10.44.189.28:8080/eFpWorkplace/     to    http://proxy-1914101111.eu-west-1.elbxxxxxxxx.com/wwp/eFpWorkplace

and I get an error 404 page not found.

Am I doing this the wrong way?

Any help would be great.

Thanks


Viewing all articles
Browse latest Browse all 2482

Trending Articles



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