-
-
Save hnrchrdl/a8b3cf2f56f4f330640032fd0d93626a to your computer and use it in GitHub Desktop.
Configuration file for Azure web app to support angular2 applications with routing and long urls for auth tokens and woff/woff2 files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.web> | |
<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/> | |
</system.web> | |
<system.webServer> | |
<security> | |
<requestFiltering> | |
<requestLimits maxQueryString="32768"/> | |
</requestFiltering> | |
</security> | |
<rewrite> | |
<rules> | |
<rule name="Angular" stopProcessing="true"> | |
<match url="^(?!.*(.chunk.js|.bundle.js|.bundle.map|.bundle.js.gz|.bundle.css|.bundle.css.gz|.png|.jpg|.ico)).*$" /> | |
<conditions logicalGrouping="MatchAll"></conditions> | |
<action type="Rewrite" url="/" appendQueryString="true" /> | |
</rule> | |
</rules> | |
</rewrite> | |
<staticContent> | |
<mimeMap fileExtension="woff" mimeType="application/font-woff" /> | |
<mimeMap fileExtension="woff2" mimeType="application/font-woff" /> | |
</staticContent> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment