./vhost报错

问答中心分类: Nginx./vhost报错
helaobibi 提问 2年 前

nginx: [emerg] “location” directive is not allowed here in /usr/local/nginx/conf/vhost/www.yybmb.net.conf:31
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Create virtualhost … [FAILED]
请问这个什么故障啊?