今天配置nginx的proxy_pass 問題:
在proxy_pass http://item/test; 後加入 / 和不加入是有區別的
加入 / 實例:
http://item/index.html #直接域名訪問就可以得到index
不加入 / 實例:
http://item/test #自動加入 test 訪問不到index
今天配置nginx的proxy_pass 問題:
在proxy_pass http://item/test; 後加入 / 和不加入是有區別的
加入 / 實例:
http://item/index.html #直接域名訪問就可以得到index
不加入 / 實例:
http://item/test #自動加入 test 訪問不到index