不能直接访问某个目录,但可以访问目录下具体的文件 test目录绝对地址:/data/upload/test
location /test { index index.html; #try_files $uri $uri/ /index.html; root /data/upload; }