huayu 发表于 2010-6-14 13:49:28

lnmp开设虚拟主机确实存在问题

lnmp开设虚拟主机确实存在问题
/usr/local/nginx/conf/vhost 下没生成主机头
站点目录有时候也不能生成。

huayu 发表于 2010-6-14 13:54:01

回复 1# 的帖子

(Default domain: www.lnmp.org):boyin.us www.boyin.us
===========================
domain=boyin.us www.boyin.us
===========================
Do you want to add more domain name? (y/n)
n
Please input the directory for the domain:boyin.us www.boyin.us :
(Default directory: /home/wwwroot/boyin.us www.boyin.us):
===========================
Virtual Host Directory=/home/wwwroot/boyin.us www.boyin.us
===========================
===========================
Allow Rewrite rule? (y/n)
===========================
n
===========================
You choose rewrite=none
===========================
===========================
Allow access_log? (y/n)
===========================
n
===========================
You access log file=.log
===========================

huayu 发表于 2010-6-14 13:54:58

回复 2# 的帖子

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
./vhost.sh: line 136: /usr/local/nginx/conf/vhost/$domain.conf: ambiguous redire
ct
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......
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill
-l
=========================================================================
Add Virtual Host for LNMP V0.4,Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/

Your domain:boyin.us www.boyin.us
Directory of boyin.us www.boyin.us:/home/wwwroot/boyin.us www.boyin.us

licess 发表于 2010-6-14 16:32:18

回复 3# 的帖子

你是什么系统?像是你shell的问题,没有把变量替换为值

huayu 发表于 2010-6-14 17:20:57

回复 4# 的帖子

系统centos-5.5
找到问题了,绑定域名的时候,不能使用
(Default domain: www.lnmp.org):boyin.us www.boyin.us
只能使用(Default domain: www.lnmp.org):boyin.us
Do you want to add more domain name? (y/n)
在y 输入www.boyin.us 域名就完全ok了

monenty 发表于 2010-6-14 17:35:34

我的也有问题,需要把网站目录放在nginx 下面才能访问,放在wwwroot 出现404
页: [1]
查看完整版本: lnmp开设虚拟主机确实存在问题