location /service {
proxy_pass http://xx.xx.xx.xx/service;
proxy_set_header Host $host:80;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
参考地址:https://blog.csdn.net/weixin_34355715/article/details/94223474
网友评论