summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/web.config
diff options
context:
space:
mode:
authorTorsten Grote <grote@kolabsys.com>2014-01-29 15:00:00 (GMT)
committerTorsten Grote <grote@kolabsys.com>2014-01-29 15:00:00 (GMT)
commitd9e4a0f1b5f45b2e3fed0908a69dad264d40b15b (patch)
tree76d774e7d2ce4ba7c0754c590a6b730b6f6ceed9 /kolab.org/www/drupal-7.26/web.config
parent5145fb6b6b03f545d7b82db89850dac1b3b49d78 (diff)
downloadkolab.org-www-d9e4a0f1b5f45b2e3fed0908a69dad264d40b15b.tar.gz
add new drupal version
Diffstat (limited to 'kolab.org/www/drupal-7.26/web.config')
-rw-r--r--kolab.org/www/drupal-7.26/web.config46
1 files changed, 46 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/web.config b/kolab.org/www/drupal-7.26/web.config
new file mode 100644
index 0000000..09983d9
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/web.config
@@ -0,0 +1,46 @@
+<?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|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|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" />
+ <conditions>
+ <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
+ </conditions>
+ </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>
+