Drop support of IIS [skip ci]

This commit is contained in:
Pig Fang 2019-08-10 10:27:43 +08:00
parent 457594797c
commit 283ab51259
3 changed files with 2 additions and 47 deletions

View File

@ -1,47 +0,0 @@
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="index.html" />
</files>
</defaultDocument>
<!-- Fix webfont issue on IIS -->
<staticContent>
<mimeMap fileExtension="." mimeType="image/png" />
<remove fileExtension=".woff"/>
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<remove fileExtension=".woff2"/>
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
</staticContent>
<!-- For rewrite to work please install IIS URL Rewrite Module -->
<rewrite>
<rules>
<rule name="Block access to dotfiles">
<match url="(^\.|/\.)" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" />
</rule>
<rule name="Block access to storage path">
<match url="^storage/.*" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" />
</rule>
<rule name="Redirect trailing slashes if not a folder" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
</rule>
<rule name="Handle front controller" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

View File

@ -20,3 +20,4 @@
- Removed Artisan command `php artisan key:random`.
- Removed Artisan commands of migration for v3 to v4.
- Dropped support of IIS.

View File

@ -20,3 +20,4 @@
- 移除 Artisan 命令:`php artisan key:random`
- 移除为 v3 迁移到 v4 而编写的 Artisan 命令
- 放弃对 IIS 的支持