nginx
用 include vhost/*.conf
配置在conf文件夹下的nginx.conf中时,如果启动不了,且日志文件logs中的error.log中出现以下错误时:
unknown directive “upstream” in E:\software\nginx/conf/vhost/…
尝试不用include 引入,直接把vhost文件夹里的 conf文件中的配置直接配置在nginx.conf中,问题就会得到解决。
nginx
用 include vhost/*.conf
配置在conf文件夹下的nginx.conf中时,如果启动不了,且日志文件logs中的error.log中出现以下错误时:
unknown directive “upstream” in E:\software\nginx/conf/vhost/…
尝试不用include 引入,直接把vhost文件夹里的 conf文件中的配置直接配置在nginx.conf中,问题就会得到解决。