失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > nginx将9000端口转发映射至 8080

nginx将9000端口转发映射至 8080

时间:2019-09-30 23:06:43

相关推荐

nginx将9000端口转发映射至 8080

独角兽企业重金招聘Python工程师标准>>>

server{listen8080;#listensomename:8080;server_namelocalhost;location/{proxy_passhttp://localhost:9000;proxy_set_headerHost$host:8080;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;proxy_set_headerVia"nginx";}}

location / {}里面是一些转发参数.

这只是一种方法,是按照网上别人的做法照抄过来的,在我本机上运行还正常,没有涉及到cookie和http头以及请求原始ip等配置,具体的还没来得及仔细研究.

如果觉得《nginx将9000端口转发映射至 8080》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。