location /abc { root /var/www/html; }
地址http://ip/abc 访问的是目录 /var/www/html/abc 下的内容,而不是 /var/www/html。如果 /var/www/html/abc 不存在则报404错误。
Nginx 静态文件 location 指定
原文:http://blog.51cto.com/linux10000/2162309