时间:2021-07-01 10:21:17 帮助过:2人阅读
server { listen 80; server_name localhost; server_name_in_redirect off; proxy_set_header Host $host:$server_port; 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:8080/; } }
以上就介绍了Nginx隐藏端口号详解,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。