nginx 部署 .net core 获取的客户端ip为127.0.0.1
摘要:采用nginx和.net core 部署一套api接口到服务器上,发现获取到的ip地址为127.0.0.1 经过检查发现,需要在nginx配置上以下参数 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; pro
阅读全文
posted @ 2018-09-06 17:17
posted @ 2018-09-06 17:17
posted @ 2017-01-24 14:57