Skip to content

Instantly share code, notes, and snippets.

@PendragonDevelopment
Created October 10, 2012 17:12
Show Gist options
  • Save PendragonDevelopment/3867000 to your computer and use it in GitHub Desktop.
Save PendragonDevelopment/3867000 to your computer and use it in GitHub Desktop.

Revisions

  1. Jordan Burke revised this gist Oct 10, 2012. 1 changed file with 15 additions and 3 deletions.
    18 changes: 15 additions & 3 deletions statamic-iis
    Original file line number Diff line number Diff line change
    @@ -6,18 +6,30 @@
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 2" stopProcessing="true">
    <match url="^(.*).yml$" ignoreCase="false" />
    <match url="^(_app)" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 3" stopProcessing="true">
    <match url="^(.*).yaml$" ignoreCase="false" />
    <match url="^(_cache)" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 4" stopProcessing="true">
    <match url="^(.*/)?\.git+" ignoreCase="false" />
    <match url="^(_content)" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 5" stopProcessing="true">
    <match url="^(.*).yml$" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 6" stopProcessing="true">
    <match url="^(.*).yaml$" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 7" stopProcessing="true">
    <match url="^(.*/)?\.git+" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 8" stopProcessing="true">
    <match url="^(.*)$" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll">
    <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  2. Jordan Burke created this gist Oct 10, 2012.
    29 changes: 29 additions & 0 deletions statamic-iis
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@

    <rewrite>
    <rules>
    <rule name="Imported Rule 1" stopProcessing="true">
    <match url="^(_config)" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 2" stopProcessing="true">
    <match url="^(.*).yml$" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 3" stopProcessing="true">
    <match url="^(.*).yaml$" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 4" stopProcessing="true">
    <match url="^(.*/)?\.git+" ignoreCase="false" />
    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    </rule>
    <rule name="Imported Rule 5" stopProcessing="true">
    <match url="^(.*)$" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll">
    <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
    </conditions>
    <action type="Rewrite" url="/index.php" appendQueryString="true" />
    </rule>
    </rules>
    </rewrite>