nginx反向代理配置

在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的地址

 

 

posted on 2020-04-08 13:09  Sample_天  阅读(3275)  评论(0编辑  收藏  举报

导航