nginx配地址直接访问服务器地址中的文件
/zy/files 接口地址
/project/files/path/ 文件在服务器中的路径
设置接口访问项目
location ^~ /zy/files {
root html;
index index.html index.html;
proxy_pass http://ip:端口/zy/files/;
}
#设置接口指向对应服务器路径
location /zy/files/ {
alias /project/files/path/;
autoindex on;
}