标题: 绑定域名不成功是什么原因??还有VPS重启后网站就打不开了是什么原因? [打印本页] 作者: syewcom 时间: 2012-3-24 07:59 标题: 绑定域名不成功是什么原因??还有VPS重启后网站就打不开了是什么原因? [root@yunxianren ~]# /root/vhost.sh
=========================================================================
Add Virtual Host for LNMP V0.8 , Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to add virtual host for nginx
For more information please visit http://www.lnmp.org/
=========================================================================
Please input domain:
(Default domain: www.lnmp.org):www.yunxianren.com
===========================
www.yunxianren.com is exist!
===========================
Do you want to add more domain name? (y/n)
y
Type domainname,example(bbs.vpser.net forums.vpser.net luntan.vpser.net):
yunxianren.com
===========================
domain list=yunxianren.com
===========================
Please input the directory for the domain:www.yunxianren.com :
(Default directory: /home/wwwroot/www.yunxianren.com):
===========================
Virtual Host Directory=/home/wwwroot/www.yunxianren.com
===========================
===========================
Allow Rewrite rule? (y/n)
===========================
n
===========================
You choose rewrite=none
===========================
===========================
Allow access_log? (y/n)
===========================
n
Press any key to start create virtul host...
Create Virtul Host directory......
set permissions of Virtual Host directory......
You select the exist rewrite rule:/usr/local/nginx/conf/none.conf
Test Nginx configure file......
nginx: [emerg] invalid number of arguments in "include" directive in /usr/local/nginx/conf/vhost/=========================================================================.conf:8
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Restart Nginx......
nginx: [emerg] invalid number of arguments in "include" directive in /usr/local/nginx/conf/vhost/=========================================================================.conf:8
=========================================================================
Add Virtual Host for LNMP V0.8 , Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/