./vhost报错

问答中心分类: Nginx./vhost报错
helaobibi asked 8 年 ago
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]
请问这个什么故障啊?

2 Answers
aa99666 answered 8 年 ago
一样...
nginx: [emerg] "location" directive is not allowed here in /usr/local/nginx/conf/vhost/www.xxx.cm.conf:27
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Create virtualhost ... [FAILED]

oneinstack answered 8 年 ago
 

cd ~/oneinstack
rm -rf vhost.sh
wget http://mirrors.linuxeye.com/oneinstack/vhost.sh
chmod +x vhost.sh