在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刪除。