nginx 增加location
location /css{root:/user/local/nginx/static;index: index.html index.htm;}location /images{root:/user/local/nginx/static;index: index.html index.htm;}location /js{root:/user/local/nginx/static;index: index.html index.htm;}
location使用正则
location ~*/(css|images|js){root:/user/local/nginx/static;index: index.html index.htm;}
root换成alias
root 会在加location 目录拼接,alias不会
location /css{alias:/user/local/nginx/static/css;index: index.html index.htm;}
