/var/www/html/foo/index.html
在 2017年1月18日星期三 UTC+8上午9:33:51,maxwa...@gmail.com写道:
location / {
root html;
index index.html index.htm;
}
location /foo {
root /var/www/html;
index index.html;
}
请教大家一个问题,这是我学习燕十八的nginx课程的一个学习案例,在/var/www/html/目录下存在一个index.html
"/var/www/html/foo" failed (2: No such file or directory)
而燕十八讲课的时候,的确是访问了/var/www/html/index.html页面了。测试了好久,不知道是为什么?
有哪位高手指点下迷津。谢谢