mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-27 06:29:19 +08:00
35 lines
1.1 KiB
XML
35 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration>
|
|
<system.webServer>
|
|
<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 install URL Rewrite Module via Web Platform Installer -->
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="bss" patternSyntax="Wildcard">
|
|
<match url="*" />
|
|
<conditions>
|
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
|
</conditions>
|
|
<action type="Rewrite" url="index.php" />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
</system.webServer>
|
|
|
|
<!-- Protect .env file -->
|
|
<location path="~/.env">
|
|
<system.web>
|
|
<authorization>
|
|
<deny users="*"/>
|
|
</authorization>
|
|
</system.web>
|
|
</location>
|
|
</configuration>
|