windows10环境
server {
listen 8082;
server_name localhost;
location / {
root F:/x1/x2\x3;// 斜杠反斜杠都可以,x3后面可以不用加斜杠
index index.html index.htm;
}
......
举例:
location / { root /data/www; } location /images/ { root /data/; }
优先匹配最长路径,如何最长路径不匹配,则匹配根路径。