forked from aspjs/aspjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
31 lines (31 loc) · 1.65 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
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="aspjs client" stopProcessing="true">
<match url="aspjs\/client\.js" />
<action type="Rewrite" url="/aspjs/js/client.js" />
</rule>
<rule name="aspjs router" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAny">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_URI}" pattern="^\/aspjs\/.*" />
<add input="{REQUEST_URI}" pattern="^\/aspjs_modules\/.*" />
</conditions>
<action type="Rewrite" url="/aspjs/router.asp" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Custom">
<remove statusCode="500" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="500" subStatusCode="100" path="/aspjs/error.asp" responseMode="ExecuteURL" />
<error statusCode="403" prefixLanguageFilePath="" path="/aspjs/notfound.asp" responseMode="ExecuteURL" />
<error statusCode="404" prefixLanguageFilePath="" path="/aspjs/notfound.asp" responseMode="ExecuteURL" />
<error statusCode="500" prefixLanguageFilePath="" path="/aspjs/error.asp" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
</configuration>