问题
I have read through and tried implementing various documentation regarding '500 - internal server error'; however nothing seems to work.
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>
来源:https://stackoverflow.com/questions/60351664/why-does-web-config-not-work-successfully