Why does web.config not work successfully?

China☆狼群 提交于 2020-03-05 03:22:25

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!