错误案例
listen 80;
server_name localhost;
location /dist/ {
root E:\\project\\handvoer\\front\\dist;
index index.html;
}
location /Pictures/ {
root C:\\Users\\DELL\\Pictures;
autoindex on;
}
正确案例
listen 80;
server_name localhost;
location /dist/ {
root E:\\project\\handvoer\\front;
index index.html;
}
location /Pictures/ {
root C:\\Users\\DELL;
autoindex on;
}