就是照着慕斯网一字一字敲的
server{
listen 80;
autoindex off;
server_name img.ryanquan.com;
access_log d:\access.log combined;
index index.html index.htm index.jsp index.php;
#error_page 404 /404.html;
if ( $query_string ~* ".*[\;'\<\>].*" ){
return 404;
}
location ~ /(mmall_fe|mmall_admin_fe)/dist/view/* {
deny all;
}
location / {
root D:\ftpfile\img;
add_header Access-control_Allow_Origin *;
}
}