猿问

我找不到独立完成企业级开发2-19的 nginx的原码,然后我敲了一个出来报错。

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

谁能帮我看看错误,或者告诉我原码收藏在什么地方啊?

qq_闎_ehpwzA
浏览 1057回答 2
2回答
随时随地看视频慕课网APP
我要回答