- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2011-5-26
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
先设了域名把www.xxxxxxx.co.cc (这个是代名)解析到主机ip。
然后 用root/vhost.sh 新建一个虚拟主机www.xxxxxxx.co.cc
=========================================================================
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):www.xxxxxxx.co.cc
===========================
domain=www.xxxxxxx.co.cc
===========================
Do you want to add more domain name? (y/n)
n
Please input the directory for the domain:www.xxxxxxx.co.cc :
(Default directory: /home/wwwroot/www.xxxxxxx.co.cc):
===========================
Virtual Host Directory=/home/wwwroot/www.xxxxxxx.co.cc
===========================
===========================
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)
===========================
y
Type access_log name(Default access log file:www.xxxxxxx.co.cc.log):
===========================
You access log file=www.xxxxxxx.co.cc.log
===========================
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/wordpress.conf
Test Nginx configure file......
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......
=========================================================================
Add Virtual Host for LNMP V0.7 , Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/
Your domain:www.xxxxxxx.co.cc
Directory of www.xxxxxxx.co.cc:/home/wwwroot/www.xxxxxxx.co.cc
=========================================================================
然后访问 http://www.xxxxxxx.co.cc/
只有一句 No input file specified.
用root拷贝一个index.html到 wwwroot/www.xxxxxxx.co.cc/ 里面,改了755和owner还是不行。
是哪里弄的不对么?对这些配置都不熟,能实现把www.xxxxxxx.co.cc定位到wwwroot下面的一个目录使他看起来像一个单独的网站么? |
|