forked from espocrm/espocrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
57 lines (53 loc) · 2.64 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="rule 1X" stopProcessing="true">
<match url="^/?reset/?$" />
<action type="Rewrite" url="reset.html" appendQueryString="true" />
</rule>
<rule name="RequestBlocking1" stopProcessing="true">
<match url="^/?data/config\.php$" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." />
</rule>
<rule name="RequestBlocking2" stopProcessing="true">
<match url="^/?data/logs/" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." />
</rule>
<rule name="RequestBlocking3" stopProcessing="true">
<match url="^/?data/cache/" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." />
</rule>
<rule name="RequestBlocking4" stopProcessing="true">
<match url="^/?data/upload/" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." />
</rule>
<rule name="RequestBlocking5" stopProcessing="true">
<match url="^/?application/" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." />
</rule>
<rule name="RequestBlocking6" stopProcessing="true">
<match url="^/?custom/" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." />
</rule>
<rule name="RequestBlocking7" stopProcessing="true">
<match url="^/?vendor/" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="index.html" />
</files>
</defaultDocument>
<staticContent>
<mimeMap fileExtension=".tpl" mimeType="text/plain" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
</staticContent>
</system.webServer>
</configuration>