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>
<rewrite>
<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 -->
<!--
<rule name="Disallow sensitive directories" stopProcessing="true">
<rule name="Disallow sensitive directories" enabled="false" stopProcessing="true">
<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" />
</rule>
-->
<rule name="Handle index.php re-write" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">