以下是错误提示:
nginx: [emerg] unexpected end of file, expecting "}" in E:\JAVA\Nginx\windows-nginx-1.10.2\nginx-1.10.2/conf/vhost/tomcat.imooc.com.conf:1
nginx: configuration file E:\JAVA\Nginx\windows-nginx-1.10.2\nginx-1.10.2/conf/nginx.conf test failed
以下是我的配置:
server{
listen 80;
autoindex off;
server_name image.imooc.com;
access_log c:/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 F:\Learn\JAVA\ftpfile\img;
add_header Access-Control-Allow-Origin *;
}
}