root@buyvm256:~#/root/vhost.sh
========================================================================= Add Virtual Host for LNMP V0.9 , 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):0x8.net
===========================domain=0x8.net
=========================== Do you want to add more domain name? (y/n) //添加更多域名
y
Type domainname,example(bbs.vpser.net forums.vpser.net luntan.vpser.net):
www.0x8.net
=========================== domain list=www.0x8.net
=========================== Please input the directory for the domain:0x8.net : //网站目录
(Default directory: /home/wwwroot/0x8.net):
=========================== Virtual Host Directory=/home/wwwroot/0x8.net
====================================================== Allow Rewrite rule? (y/n) //重写规则
=========================== y
Please input the rewrite of programme :
wordpress,discuz,typecho,sablog,dabr rewrite was exist.
(Default rewrite: other):wordpress //选择重写规则
=========================== You choose rewrite=wordpress====================================================== Allow access_log? (y/n) //是否记录log
=========================== n
Press any key to start create virtul host...