Skip to content

Instantly share code, notes, and snippets.

@graywolfcorp
Created January 5, 2019 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graywolfcorp/67da03a085090c4c58d96a50e1496549 to your computer and use it in GitHub Desktop.
Save graywolfcorp/67da03a085090c4c58d96a50e1496549 to your computer and use it in GitHub Desktop.
Azure web.config for Angular app
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="spa" stopProcessing="true">
<match url="^(?!.*(.js|.css|.png|.jpg|.ico|.svg)).*$" />
<conditions logicalGrouping="MatchAll">
</conditions>
<action type="Rewrite" url="/" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment