summaryrefslogtreecommitdiff
path: root/web.config
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-14 15:54:08 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-14 15:54:08 +0000
commite11daebdc01122a5e295b3b3035b635c0afb1619 (patch)
tree82ce70b4c207dbbd3b1bc3ec6627d08dc947648f /web.config
parent0ad37ad057018eeed7a0734b98bda273f5f30aae (diff)
downloadbrdo-e11daebdc01122a5e295b3b3035b635c0afb1619.tar.gz
brdo-e11daebdc01122a5e295b3b3035b635c0afb1619.tar.bz2
#567072 by Heine: Ship Drupal 7 with a configuration file for IIS 7.
Diffstat (limited to 'web.config')
-rw-r--r--web.config43
1 files changed, 43 insertions, 0 deletions
diff --git a/web.config b/web.config
new file mode 100644
index 000000000..d97e89531
--- /dev/null
+++ b/web.config
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <system.webServer>
+ <!-- Don't show directory listings for URLs which map to a directory. -->
+ <directoryBrowse enabled="false" />
+ <rewrite>
+ <rules>
+ <rule name="Protect files and directories from prying eyes" stopProcessing="true">
+ <match url="\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$" />
+ <action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." />
+ </rule>
+ <rule name="Force simple error message for requests for non-existent favicon.ico" stopProcessing="true">
+ <match url="favicon\.ico" />
+ <action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="File Not Found" statusDescription="The requested file favicon.ico was not found" />
+ </rule>
+ <!-- Rewrite URLs of the form 'x' to the form 'index.php?q=x'. -->
+ <rule name="Short URLS" stopProcessing="true">
+ <match url="^(.*)$" ignoreCase="false" />
+ <conditions>
+ <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
+ <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
+ <add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
+ </conditions>
+ <action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" />
+ </rule>
+ </rules>
+ </rewrite>
+
+ <httpErrors>
+ <remove statusCode="404" subStatusCode="-1" />
+ <error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" />
+ </httpErrors>
+
+ <defaultDocument>
+ <!-- Set the default document -->
+ <files>
+ <remove value="index.php" />
+ <add value="index.php" />
+ </files>
+ </defaultDocument>
+ </system.webServer>
+</configuration>
+