Skip to content

Instantly share code, notes, and snippets.

@cakriwut cakriwut/web.config
Last active Oct 22, 2016

What would you like to do?
IIS Reverse Proxy Sample Rule
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<rule name="ReverseProxy" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="" />
<action type="Rewrite" url="http://internalserver:2000/{R:0}" />
<set name="HTTP_X_ORIGINAL_HOST" value="{HTTP_HOST}" />
<set name="HTTP_ACCEPT_ENCODING" value=""/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.