首页 > 代码库 > nginx反向代理配置
nginx反向代理配置
1.修改nginx.conf配置文件,在 location / {这个行下添加反向代理
location / { proxy_pass http://192.168.2.140:8080/;#就是这行代码 auth_basic off; auth_basic_user_file /var/user; root html; index index.html index.htm; }
2.测试访问
http://www.nginx1.com:9527/
本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1944299
nginx反向代理配置
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。