为什么web.config无法成功工作?

时间:2020-02-22 11:21:01

标签: iis-7

我已阅读并尝试实现有关“ 500-内部服务器错误”的各种文档;但是似乎没有任何作用。

https://nkfaulknerandsons.co.uk/

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
        <rewrite>
            <rules>
                <rule name="HTTPS Rule" enabled="true" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTPS}" pattern="^OFF$" />
                    </conditions>
                    <action type="Redirect" url="https://(HTTP_HOST)(REQUEST_URI)" redirectType="Permanent" />
                </rule>
            </rules>
        </rewrite>
        <urlCompression doDynamicCompression="false">
        </urlCompression>
        <defaultDocument>
            <files>
                <add value="untitled-1.html" />
            </files>
        </defaultDocument>
        <authorization>
            <allow users="?" />
        </authorization>
    </system.webServer>
    <system.web>
        <customErrors mode="Off" />
        <compilation debug="true" />
    </system.web>
</configuration>

0 个答案:

没有答案