alexazhou/VeryNginx

nginx: [emerg] "upstream" directive is not allowed here in /opt/verynginx/verynginx/nginx_conf/in_http_block.conf:1

angelsclare opened this issue · 0 comments

测试了下当导入虚拟主机文件就会报这个错误,没有导入虚拟主机文件则不会报错,请问是什么问题啊?
include conf.d/*.conf;

/opt/verynginx/openresty/nginx/sbin/nginx -t              
nginx: [emerg] "upstream" directive is not allowed here in /opt/verynginx/verynginx/nginx_conf/in_http_block.conf:1
nginx: configuration file /opt/verynginx/openresty/nginx/conf/nginx.conf test failed