Ticket #7 (closed 故障: 已处理)
nginx与真实ip问题
| Reported by: | qinhongyuan | Owned by: | qinhongyuan |
|---|---|---|---|
| Priority: | 重要的(3) | Milestone: | |
| Component: | 电脑网产品论坛 | Version: | 电脑网产品论坛6.4 |
| Keywords: | nginx ip | Cc: | qinhogyuan |
| Due Date: | 05/12/2011 |
Description
在原来一层的nginx的基础上添加多一层nginx,所得的ip数据就不一样了
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)
1.根据test_ip.jsp返回来的数据知道,realip为IDC托管机房里的机器的ip
2.在原来获取ip的基础上,加多一层判断。forward基本存在两个ip。forward的ip里面替换掉realip,取得真实ip