nginx 學習中忽略的問題

  1. 今天配置nginx的proxy_pass 問題:

   在proxy_pass http://item/test; 後加入 / 和不加入是有區別的


加入 / 實例:

  http://item/index.html  #直接域名訪問就可以得到index


不加入 / 實例:

   http://item/test   #自動加入 test 訪問不到index

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章