Hello,
I'm having a problem detecting the content coming from the website I'm proxing. In another words I cant overwrite the source html to point all the links to the correct route. My web.config looks as follows:
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<rewrite>
<rules>
<rule name="Route the requests for DNN" stopProcessing="false">
<match url="^territorio-amv/(.*)" />
<conditions>
</conditions>
<action type="Rewrite" url="http://territorioamvdev.azurewebsites.net/{R:1}" logRewrittenUrl="false" />
<serverVariables>
<set name="HTTP_ACCEPT_ENCODING" value="" />
</serverVariables>
</rule>
</rules>
<outboundRules>
<rule name="Add application prefix" preCondition="ResponseIsHtml">
<match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="^/(.*)" />
<conditions>
<add input="{URL}" pattern="^/territorio-amv/.*" />
</conditions>
<action type="Rewrite" value="/territorio-amv/{R:1}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
This works fine because it captures all input but my local site doesnt work since its sent to /territorio-amv/...
-Thanks