-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
executable file
·33 lines (31 loc) · 1.44 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
32
33
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
<httpErrors>
<!--<remove statusCode="401" subStatusCode="-1" />-->
<!--<remove statusCode="403" subStatusCode="-1" /> -->
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<!--<remove statusCode="500" subStatusCode="-1" /> -->
<!-- full url when responsemode is Redirect -->
<!--<error statusCode="401" path="http://foo.com/default.htm" responseMode="Redirect" />-->
<!-- local relative path when responsemode is ExecuteURL -->
<!--<error statusCode="403" path="/errors/403.html" responseMode="ExecuteURL" />-->
<error statusCode="404" path="/errors/404.html" responseMode="ExecuteURL" />
<error statusCode="403" path="/errors/403.html" responseMode="ExecuteURL" />
<!--<error statusCode="500" path="/errors/500.html" responseMode="ExecuteURL" />-->
</httpErrors>
</system.webServer>
</configuration>