Used enabled flag for no-public restrictions

Also fixes any indentations
pull/66/head
Matt Kilgore 2020-07-28 20:34:19 -04:00 committed by GitHub
parent d3bb8409b7
commit 443dfa2c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -9,14 +9,12 @@
</defaultDocument> </defaultDocument>
<rewrite> <rewrite>
<rules> <rules>
<!-- Uncomment the rule below if you are not using the `public` directory to <!-- Changed `enabled=` to true in the rule below if you are not using the `public` directory to
prevent sensitve resources from being exposed --> prevent sensitve resources from being exposed -->
<!-- <rule name="Disallow sensitive directories" enabled="false" stopProcessing="true">
<rule name="Disallow sensitive directories" stopProcessing="true">
<match url="^/(\.git|composer\.(json|lock)|auth\.json|config\.php|flarum|storage|vendor)" ignoreCase="false" /> <match url="^/(\.git|composer\.(json|lock)|auth\.json|config\.php|flarum|storage|vendor)" ignoreCase="false" />
<action type="CustomResponse" url="/" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" /> <action type="CustomResponse" url="/" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule> </rule>
-->
<rule name="Handle index.php re-write" stopProcessing="true"> <rule name="Handle index.php re-write" stopProcessing="true">
<match url="^" ignoreCase="false" /> <match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAll"> <conditions logicalGrouping="MatchAll">