9404803 发表于 2018-11-14 09:28:35

nginx 404页面重定向

  废话不多说我们开始
  首先在nginx的配置文件中的
  http{
  }
  或者
  sevice{
  }
  中加入
  fastcgi_intercept_errors on;
  接着修改
  error_page404            /Error404/404.html;
  下面的
  location = /404.html {
  root   /var/www/web;
  }
  可以注释掉
  修改40* 50* 页面也类似

页: [1]
查看完整版本: nginx 404页面重定向