VPS侦探论坛

 找回密码
 注册
查看: 9554|回复: 5

添加虚拟主机还是无法把域名指定到目录

[复制链接]
发表于 2010-6-12 15:43:44 | 显示全部楼层 |阅读模式

/usr/local/nginx/conf/vhost  这个目录还是不存在 绑定域名主机头,生成文件是空,wwwoor站点目录存在。
这是什么问题,提示创建已成功!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2010-6-12 16:03:41 | 显示全部楼层

回复 1# 的帖子



[root@xiejs2 ~]# cd lnmp0.4/
[root@xiejs2 lnmp0.4]# ./vhost.sh
=========================================================================
Add Virtual Host for LNMP V0.4  ,  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):xxxx.com www.xxxxxx.com
===========================
domain=xxxx.com www.xxxx.com
===========================
Do you want to add more domain name? (y/n)
n
Please input the directory for the domain:xxxxxx.com www.xxxx.com :
(Default directory: /home/wwwroot/xxxx.com www.xxxx.com):
===========================
Virtual Host Directory=/home/wwwroot/xxx.com www.xxxx.com
===========================
===========================
Allow Rewrite rule? (y/n)
===========================
n
===========================
You choose rewrite=none
===========================
===========================
Allow access_log? (y/n)
===========================
n
===========================
You access log file=.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/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......
=========================================================================
Add Virtual Host for LNMP V0.4  ,  Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/

Your domain:xxxxx.com www.xxx.com
Directory of xxxxx.com www.xxx.com:/home/wwwroot/xxxx.com www.xxx.com

=========================================================================
[root@xiejs2 lnmp0.4]#

提示 vhost.sh: line 136: ?不明白

[ 本帖最后由 huayu 于 2010-6-12 16:06 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-6-12 16:11:18 | 显示全部楼层

Please input domain:
(Default domain: www.lnmp.org):www.xxxxxx.com
===========================
domain= www.xxxx.com
===========================
Do you want to add more domain name? (y/n)
y
Please input the directory for the domain:www.xxxx.com  xxxx.com :
(Default directory: /home/wwwroot/要绑定的目录
===========================
Virtual Host Directory=/home/wwwroot/要绑定的目录
===========================
===========================
Allow Rewrite rule? (y/n)
===========================
n
===========================
You choose rewrite=none
===========================
===========================
Allow access_log? (y/n)
===========================
n
===========================
You access log file=.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/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

这样试试    不行就一个域名一个域名的 加
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2010-6-12 16:18:13 | 显示全部楼层

回复 3# 的帖子




果然是目录问题,我不选择,指定目录,使用默认,他只指向绑定域名目录,他没/home/wwwroot/这个目录。谢谢3楼
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-6-12 16:22:36 | 显示全部楼层

不输绑定的目录   默认目录就是以域名    命名的目录

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2010-6-12 16:31:17 | 显示全部楼层

回复 5# 的帖子


您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-6 04:54 , Processed in 0.027487 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表