这是conf:
location /Desktop/ {
root c:/Users/elqstux/;
}
Run Code Online (Sandbox Code Playgroud)
文件路径是C:\Users\elqstux\Desktop\wy.html.
当我http://127.0.0.1/Desktop/wy.html在浏览器中访问时,我得到了404 Not Found.
谁能说出什么问题?
Nic*_*uer 10
使用双反斜杠来避免某些字符问题(\r 是回车符。):
root C:\\Users\\elelqstux;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5452 次 |
| 最近记录: |