当我整理nginx.conf文件时,似乎出现了错误。这是我所做的:
我的nginx.conf文件在“虚拟主机配置”下有这些行
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
在启用/ sites的目录中,我有两个文件:
默认//此为空
fn_django //这包含服务器块配置
为什么我的nginx linter会抱怨以下错误?
nginx: [emerg] open() "/etc/nginx/sites-enabled/default" failed (2: No such file or directory) in /etc/nginx/nginx.conf:62