公司新系统  随风做的  给客户演示出错不想让客户看到   自动返回上一页面。

 

刚开始按照网上说的 在nginx 处理:

# 定义错误提示页面
      error_page   500 502 503 504 /50.html;  
        location = error/50.html {
        root   /var/www/website;
        }

没有效果。后来想 后台apache应用处理错误,nginx只是反向代理。

在apache按照网上说的不行:

httpd.conf配置文件 添加

ErrorDocument 404 /404.php

后来发现  添加空控制类:

EmptyController.class.php  即可。

 

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-12-17
  • 2022-01-10
  • 2022-12-23
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2022-01-29
  • 2021-11-11
  • 2021-08-23
相关资源
相似解决方案