Skip to content

Instantly share code, notes, and snippets.

@thanhdevapp
Created December 6, 2018 12:43
Show Gist options
  • Save thanhdevapp/c8a3cbcaf8d8085e126c5ff88dbe9240 to your computer and use it in GitHub Desktop.
Save thanhdevapp/c8a3cbcaf8d8085e126c5ff88dbe9240 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.net>
<defaultProxy>
<proxy usesystemdefault="true" proxyaddress="http://45.117.171.21:6868" bypassonlocal="true" />
</defaultProxy>
</system.net>
<system.webServer>
<rewrite>
<outboundRules>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://localhost:6868/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment