Skip to content

Instantly share code, notes, and snippets.

@oc
Created August 31, 2015 11:56
Show Gist options
  • Save oc/3dc5e0055ad5d7dfea71 to your computer and use it in GitHub Desktop.
Save oc/3dc5e0055ad5d7dfea71 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Backend API Routes" stopProcessing="true">
<match url="^api.*" />
<action type="Rewrite" url="http://127.0.0.1:12500/{R:0}" />
</rule>
<rule name="AngularJS WEB Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^api" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
<staticContent>
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment