在nignx目录下
cd /usr/local/nginx/conf
vi nginx.conf
在sever下面插入想要反向代理的信息:
配置好内容后,启动nginx
cd /usr/local/nginx/sbin
./nginx
然后到页面输入nginx服务器地址:如:172.19.20.75/hy/index
就可以反向代理172.19.20.77:8080/hy/index的地址
在nignx目录下
cd /usr/local/nginx/conf
vi nginx.conf
在sever下面插入想要反向代理的信息:
配置好内容后,启动nginx
cd /usr/local/nginx/sbin
./nginx
然后到页面输入nginx服务器地址:如:172.19.20.75/hy/index
就可以反向代理172.19.20.77:8080/hy/index的地址
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。