-
Notifications
You must be signed in to change notification settings - Fork 6
/
web.config.sample
32 lines (29 loc) · 1.35 KB
/
web.config.sample
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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- blocked /config/database.ini and *.php all file -->
<security>
<requestFiltering>
<fileExtensions applyToWebDAV="false">
<add fileExtension=".html" allowed="false" />
<add fileExtension=".php" allowed="false" />
<add fileExtension=".ini" allowed="false" />
<add fileExtension=".log" allowed="false" />
<add fileExtension=".cache" allowed="false" />
</fileExtensions>
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>