
location / { root html; index index.html index.htm; } 我将 html 改成 html2 ,同时把系统中 html 文件夹也改名为 html2
location / { root html2; index index.html index.htm; } 为啥就不能访问 index 页面呢
使用绝对路径是可以的
location / { root C:/Users/brucm/scoop/persist/nginx/html2; index index.html index.htm; } 1 FrankAdler 2022-08-15 20:36:24 +08:00 via iPhone 看看 404 日志就能猜到原因吧 |
2 brucmao OP |