問題:curl localhost/abc 回傳404。請教是什么原因?我的當前配置如下:
sites-enabled/default檔案的location設定如下。
location / {
root /var/www/html;
index index.html index.nginx-debian.html;
}
location /abc {
root /srv/test;
index index.html;
}
其他資訊:
/srv/test這個目錄可以訪問的呀。因為如果僅僅是以下配置,curl localhost 是可以回傳正確的html內容的。
location / {
root /srv/test;
index index.html;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/125254.html
標籤:其他
上一篇:誰有threejs的資源
下一篇:csdn寫博客居然搜索不到
