0
点赞
收藏
分享

微信扫一扫

nginx定制500,502,503,504页面


server {
     listen 80;
     error_page  500/500.html;
     error_page  502/502.html;
     error_page  503/503.html;
     error_page  504/504.html;

     location /test {return502;}}

配置很简单,和配置404页面的配置方式是一样的,请注意/test location是一个测试页面,不要写进你的配置中。

举报

相关推荐

0 条评论