Skip to content

Instantly share code, notes, and snippets.

@NewteqDeveloper
Created July 9, 2019 13:10
Show Gist options
  • Save NewteqDeveloper/75d9a23b334ca0511f0164ee43b67cf0 to your computer and use it in GitHub Desktop.
Save NewteqDeveloper/75d9a23b334ca0511f0164ee43b67cf0 to your computer and use it in GitHub Desktop.
This is a web.config example of what is required to host an angular website on azure app services with a .NET Framework backing
<?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