server{
listen 800;
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 *;
}
}
在系统报错 “server”directive is not allowed here in D:\nginx-1.10.3/conf/vhost/image.imooc.com.conf:1
谁能帮我看看错误,或者告诉我原码收藏在什么地方啊?