summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-09-11 20:02:27 +0200
committerDylan William Hardison <dylan@hardison.net>2016-09-11 20:02:27 +0200
commit22ef8ffbfe67a63c7cdbdcd7d5cbf197c6b86fed (patch)
treec585d6448aa5e08aaaafe4b7104a243beeb4968c
parent457bf33de7ab5c95258cbe1d1e3319839efb68cb (diff)
downloadbugzilla-22ef8ffbfe67a63c7cdbdcd7d5cbf197c6b86fed.tar.gz
bugzilla-22ef8ffbfe67a63c7cdbdcd7d5cbf197c6b86fed.tar.xz
Bug 580471 - Ship with a default web.config for IIS installs
-rw-r--r--web.config47
1 files changed, 47 insertions, 0 deletions
diff --git a/web.config b/web.config
new file mode 100644
index 000000000..1ebec727b
--- /dev/null
+++ b/web.config
@@ -0,0 +1,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>