summaryrefslogtreecommitdiffstats
path: root/web.config
blob: 1ebec727b26f213fbc2b43cf0f0486b26a6b70ef (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="index.cgi" />
            </files>
        </defaultDocument>
        <rewrite>
            <rules>
                <rule name="REST">
                    <match url="^rest/(.*)$" />
                    <action type="Rewrite" url="rest.cgi/{R:1}" />
                </rule>
            </rules>
        </rewrite>
        <directoryBrowse enabled="false" />
        <security>
            <requestFiltering>
                <fileExtensions allowUnlisted="true">
                    <add fileExtension=".dot" allowed="false" />
                    <add fileExtension=".pl" allowed="false" />
                    <add fileExtension=".pm" allowed="false" />
                    <add fileExtension=".rst" allowed="false" />
                    <add fileExtension=".tmpl" allowed="false" />
                </fileExtensions>
                <hiddenSegments>
                    <add segment="localconfig" />
                    <add segment="params.json" />
                    <add segment="mailer.testfile" />
                </hiddenSegments>
                <denyUrlSequences>
                    <add sequence="/contrib/" />
                    <add sequence="/data/attachments/" />
                    <add sequence="/data/db/" />
                    <add sequence="/data/mining/" />
                    <add sequence="/lib/" />
                    <add sequence="/rst/" />
                    <add sequence="/template/" />
                    <add sequence="/t/" />
                    <add sequence="/xt/" />
                </denyUrlSequences>
            </requestFiltering>
        </security>
    </system.webServer>
</configuration>