我已阅读并尝试实现有关“ 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>