Chinaunix首页 | 论坛 | 博客
  • 博客访问: 460610
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

分类: LINUX

2013-07-15 17:47:48

前几天开发说要把50×的返回码统一为503.这样在发版的时候就会出先unavailable。查了下nginx手册配置如下

                error_page  502 503 504 =503  /503.html;
                proxy_store off;
                proxy_redirect    off;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header Host $http_host;

                proxy_pass  ;
                location = /503.html {
                return 503;
                }


后台的app工程下touch 503.html

重启app及nginx即可。

阅读(7419) | 评论(0) | 转发(0) |
0

上一篇:Ptyhon crontab 问题

下一篇:Linux find 命令

给主人留下些什么吧!~~