Nginx: [emerg] 在 /etc/nginx/nginx.conf:76 中这里不允许使用“服务器”指令

bil*_*cyz 2 linux nginx web-server

Nginx 配置就像默认的一样:

图像 1

图像 2

我找不到有关此错误的任何线索。谁能帮我?任何帮助将不胜感激。谢谢你。

小智 8

你已经有了:

include /etc/nginx/sites-enabled/*;
Run Code Online (Sandbox Code Playgroud)

这意味着您的服务器包含在那里(默认情况下符号链接来自/etc/nginx/sites-available/

http://nginx.org/en/docs/http/ngx_http_core_module.html#server