<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<remove name="ReverseProxyInboundRule1" />
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.1.5:81/gui/{R:1}" />
</rule>
</rules>
<outboundRules>
<remove name="ReverseProxyOutboundRule1" />
<rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://192.168.1.5:81/gui/(.*)" />
<action type="Rewrite" value="http{R:1}://DOMAIN-OR-IP-HERE/{R:2}" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
</configuration>