Commit 26392c86 authored by Dries's avatar Dries
Browse files

- Patch #567072 by c960657: tweak the IIS 7 configuration file.

parent 1d9b81af
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<rewrite> <rewrite>
<rules> <rules>
<rule name="Protect files and directories from prying eyes" stopProcessing="true"> <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)$" /> <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." /> <action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." />
</rule> </rule>
<rule name="Force simple error message for requests for non-existent favicon.ico" stopProcessing="true"> <rule name="Force simple error message for requests for non-existent favicon.ico" stopProcessing="true">
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="File Not Found" statusDescription="The requested file favicon.ico was not found" /> <action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="File Not Found" statusDescription="The requested file favicon.ico was not found" />
</rule> </rule>
<!-- Rewrite URLs of the form 'x' to the form 'index.php?q=x'. --> <!-- Rewrite URLs of the form 'x' to the form 'index.php?q=x'. -->
<rule name="Short URLS" stopProcessing="true"> <rule name="Short URLs" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" /> <match url="^(.*)$" ignoreCase="false" />
<conditions> <conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment