zoukankan      html  css  js  c++  java
  • iis php web.config处理404,500等,跳转友好页面,显示500错误信息

    显示500错误信息
    <pre name="code" class="html"><?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <httpErrors errorMode="DetailedLocalOnly" existingResponse="PassThrough"></httpErrors>
    <defaultDocument>
    <files>
    <add value="index.php" />
    </files>
    </defaultDocument></system.webServer>
    </configuration>


    404,500友好提示跳转

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>   
        <httpErrors errorMode="DetailedLocalOnly">
    <remove statusCode="404"/>
    <error statusCode="404" path="/404.htm" responseMode="ExecuteURL"/>
    <remove statusCode="500"/>
    <error statusCode="500" path="/500.htm" responseMode="ExecuteURL"/>
    </httpErrors>
                <defaultDocument>
                <files>
                    <add value="index.php" />
                </files>
            </defaultDocument>
    </system.webServer>

    ————————————————
    版权声明:本文为CSDN博主「Zmsn丨星辰」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/zmsnxingchen/article/details/42804513

  • 相关阅读:
    前向传播与反向传播
    卷积运算
    使用GUI工具Portainer.io管控Docker容器
    NextCloud: 打造自己的网盘
    金融危机和经济危机有什么不同
    【转载】Windows环境的Workflow神器:AutoHotkey
    Lua常用模块
    Lua基本语法
    区分 IaaS、SaaS 和 PaaS
    【笔记】流畅的Python
  • 原文地址:https://www.cnblogs.com/Nina-piaoye/p/11445982.html
Copyright © 2011-2022 走看看