Skip to content

Commit 779de33

Browse files
Changed angular/web.config
1 parent e9e68c7 commit 779de33

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

angular/Web.config

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
4-
<!--
5-
Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380
6-
-->
7-
83
<system.webServer>
9-
<handlers>
10-
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
11-
</handlers>
12-
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
4+
<staticContent>
5+
<remove fileExtension=".json" />
6+
<mimeMap fileExtension=".json" mimeType="application/json" />
7+
<mimeMap fileExtension="woff" mimeType="application/font-woff" />
8+
<mimeMap fileExtension="woff2" mimeType="application/font-woff" />
9+
</staticContent>
10+
<!-- IIS URL Rewrite for Angular routes -->
11+
<rewrite>
12+
<rules>
13+
<rule name="Angular Routes" stopProcessing="true">
14+
<match url=".*" />
15+
<conditions logicalGrouping="MatchAll">
16+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
17+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
18+
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
19+
</conditions>
20+
<action type="Rewrite" url="/" />
21+
</rule>
22+
</rules>
23+
</rewrite>
1324
</system.webServer>
14-
</configuration>
25+
</configuration>

0 commit comments

Comments
 (0)