-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb.config
More file actions
64 lines (56 loc) · 1.87 KB
/
Copy pathweb.config
File metadata and controls
64 lines (56 loc) · 1.87 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- ===============================
Default Documents
================================ -->
<defaultDocument>
<files>
<add value="index.html" />
</files>
</defaultDocument>
<!-- ===============================
Security & Upload Limits
================================ -->
<security>
<requestFiltering>
<!-- 2 GB max upload size -->
<requestLimits maxAllowedContentLength="2097152000" />
</requestFiltering>
</security>
<!-- ===============================
HTTP Security Headers
================================ -->
<httpProtocol>
<customHeaders>
<add name="X-Content-Type-Options" value="nosniff" />
</customHeaders>
</httpProtocol>
<!-- ===============================
Static Content (YAML for Swagger)
================================ -->
<staticContent>
<remove fileExtension=".md" />
<mimeMap fileExtension=".md" mimeType="text/markdown" />
<mimeMap fileExtension=".yaml" mimeType="application/yaml" />
<mimeMap fileExtension=".yml" mimeType="application/yaml" />
</staticContent>
<!-- ===============================
URL Rewrite (REST APIs)
================================ -->
<rewrite>
<rules>
<rule name="RemovePhpExtension" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite"
url="{R:1}.php"
appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>