直接贴代码server{ listen 80; server_name a.com; location / { proxy_pass http://b.com:81; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For

- 阅读全文 -