标签:ati eal remote 代理配置 配置 bsp nginx反向代理 地址 proxy
nginx反向代理配置时,一般会添加下面的配置:
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://127.0.0.1:10678;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
用nginx做了一下反向代理,得到的ip地址都是127.0.0.1
标签:ati eal remote 代理配置 配置 bsp nginx反向代理 地址 proxy
原文地址:http://www.cnblogs.com/hellohongtian/p/6265705.html