nginx服务器404错误页面设置完整版


1.创建自己的404.html页面放置根目录;

2.更改nginx.conf在http定义区域加入:

fastcgi_intercept_errors on;

如图:

nginx服务器404错误页面设置完整版

3.更改nginx.conf在server 区域加入:

error_page 404  /404.html

如图:

nginx服务器404错误页面设置完整版

 

相关文章:

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