01
2019
02

zblog的web.config配置IIS显示详细错误信息报500错误

表现:IIS 空间报500错误,但是没有更多的错误提示,甚至乱码显示。

本地测试正常但是上传到空间到500错误这种事。。可参照如下配置,,Bug修复后将Detailed 改为 Custom ,前者意为“详细”,后者意为“自定义”。另外直接在虚拟主机控制面板自定义的404页面状态码可能不是404.

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

  <system.webServer>

    <httpErrors errorMode="Detailed" />

    <remove statusCode="404" subStatusCode="-1" />

    <error statusCode="404" prefixLanguageFilePath="" path="404.htm" responseMode="File" />

    <asp scriptErrorSentToBrowser="true"/>

  </system.webServer>

  <system.web>

    <customErrors mode="Off"/>

    <compilation debug="true"/>

  </system.web>

</configuration>

相关教程:

zblog中Ajax返回500的调试定位

https://www.qiquanji.com/utykn/1426.html

原文链接:https://www.qiquanji.com/post/8338.html

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

微信扫码关注

更新实时通知

« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。