localhost:~# /root/vhost.sh
=========================================================================
Add Virtual Host for LNMP V0.7 , 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):girlsey.com
===========================
domain=girlsey.com
===========================
Do you want to add more domain name? (y/n)
y
Type domainname,example(bbs.vpser.net forums.vpser.net luntan.vpser.net):
www.girlsey.com
===========================
domain list=www.girlsey.com
===========================
Please input the directory for the domain:girlsey.com :
(Default directory: /home/wwwroot/girlsey.com):/home/wwwroot/girlsey.com
===========================
Virtual Host Directory=/home/wwwroot/girlsey.com
===========================
===========================
Allow Rewrite rule? (y/n)
===========================
y
Please input the rewrite of programme :
wordpress,discuz,typecho,sablog,dabr rewrite was exist.
(Default rewrite: other):wrodpress
===========================
You choose rewrite=wrodpress
===========================
===========================
Allow access_log? (y/n)
===========================
n
Press any key to start create virtul host...
Create Virtul Host directory......
set permissions of Virtual Host directory......
Create Virtul Host ReWrite file......
Create rewirte file successful,now you can add rewrite rule into /usr/local/nginx/conf/wrodpress.conf.
Test Nginx configure file......
[warn]: conflicting server name "girlsey.com" on 0.0.0.0:80, ignored
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Restart Nginx......
[warn]: conflicting server name "girlsey.com" on 0.0.0.0:80, ignored
[error]: invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
=========================================================================
Add Virtual Host for LNMP V0.7 , Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/
Your domain:girlsey.com
Directory of girlsey.com:/home/wwwroot/girlsey.com
| 欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) | Powered by Discuz! X3.4 |