- 积分
- 14
- 威望
-
- 金钱
-
- 注册时间
- 2012-3-21
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
[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/
Your domain:www.yunxianren.com
Directory of www.yunxianren.com:/home/wwwroot/www.yunxianren.com
=========================================================================
[root@yunxianren ~]#
[ 本帖最后由 syewcom 于 2012-3-24 08:56 编辑 ] |
|