我菜固我在

博客园 首页 新随笔 联系 订阅 管理

2012年9月29日 #

摘要: 1.问题:小团队,快速迭代开发,版本发布没有经过测试就要放出去,怎样在内网测试过后在外网能在真实环境让内部人员再过一次测试且不影响外网用户2.实现思想:a.至少要有两台机器b.公司是统一出口IPc.根据IP将请求转发到不同的机器3.nginx配制:location / { content_by_lua ' myIP = ngx.req.get_headers()["X-Real-IP"] if myIP == nil then myIP = ngx.req.get_headers()["x_forwarded_for"] end if my... 阅读全文
posted @ 2012-09-29 17:35 大侠(cer) 阅读(8433) 评论(0) 推荐(0) 编辑