-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
27 lines (27 loc) · 1.02 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
</staticContent>
<!-- todo: 也许应该过滤掉静态文件 -->
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url="^(?:(?!api).)+" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<add value="Default.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>