I'm having an isue with reverse proxy using ARR, the issue is we have recently deployed a content management system, which alows users to create promotional URLs that can be redirected to internal or external URLs, the problem we are having is with redirects
to external URLs. so to test i have created a promotional ULR '/test' to go to
www.google.com, this works as expected locally, now when i go through the reverse proxy it redirects back to itself.
our environment: CMS resides on app tier, users access via public tier, which then reverse proxies to private tier, all other aspects are working except the external redirects. I have used fiddler and can see the response location changes to public site
when it should be www.google.com.
so to test i have created a promotional ULR '/test' to go to
www.google.com, this works as expected locally, now when i go through the reverse proxy it redirects back to itself.
How did you make the URL '/test' goes to www.google.com? Could you please enable Failed Request Tracing on the back-end server to see if the response is correct? Thanks.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
You need to uncheck the box for 'Reverse rewrite host in response headers" in ARR under Server Proxy Settings. When a redirect is happening, it is rewriting the hostname, which is why you are seeing the public site instead of your intended redirect site.
Marked as answer by Leo Tang - MSFT on Mar 23, 2012 05:33 AM
yaqub
1 Post
reverse proxy not working as expected
Mar 15, 2012 12:03 AM|LINK
I'm having an isue with reverse proxy using ARR, the issue is we have recently deployed a content management system, which alows users to create promotional URLs that can be redirected to internal or external URLs, the problem we are having is with redirects to external URLs. so to test i have created a promotional ULR '/test' to go to www.google.com, this works as expected locally, now when i go through the reverse proxy it redirects back to itself.
our environment: CMS resides on app tier, users access via public tier, which then reverse proxies to private tier, all other aspects are working except the external redirects. I have used fiddler and can see the response location changes to public site when it should be www.google.com.
see attached rule I have setup
<rewrite>
<outboundRules>
<rule name="rewite private" preCondition="ResponseIsHtml1" enabled="true" patternSyntax="ECMAScript">
<match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="websites.private" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
<action type="Rewrite" value="pulicSite.com" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
<rules>
<rule name="inbound">
<match url="(.*)" />
<action type="Rewrite" url="http://websites.private/{R:1}" />
</rule>
</rules>
</rewrite>
Please help!!
Application Request Routing ARR Reverse proxy
Leo Tang - M...
4161 Posts
Microsoft
Re: reverse proxy not working as expected
Mar 19, 2012 10:19 AM|LINK
Hi,
How did you make the URL '/test' goes to www.google.com? Could you please enable Failed Request Tracing on the back-end server to see if the response is correct? Thanks.
Feedback to us
Develop and promote your apps in Windows Store
chuck2384
19 Posts
Re: reverse proxy not working as expected
Mar 20, 2012 10:06 AM|LINK
You need to uncheck the box for 'Reverse rewrite host in response headers" in ARR under Server Proxy Settings. When a redirect is happening, it is rewriting the hostname, which is why you are seeing the public site instead of your intended redirect site.