nginx转发

server {
listen 80;
server_name www.b.com;
location / {
proxy_pass http://127.0.0.1:8088;
proxy_set_header Host $proxy_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Via "nginx";
} 
}

  

posted @ 2020-04-23 17:45  brady-wang  阅读(231)  评论(0编辑  收藏  举报