Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

apache 同一个IP的同一个端口,绑定多个域名,指向不同的网站程序

[复制链接]
sfgsse 发表于 2009-8-8 17:22:34 | 显示全部楼层 |阅读模式
在配置文件里 添加如下代码

NameVirtualHost 121.52.214.215  
<VirtualHost 121.52.214.215>;  
ServerName www.schoutenchina.com
  
DocumentRoot /yizhan  
</VirtualHost>;  
<VirtualHost 121.52.214.215>;  
ServerName www.smart.com  
DocumentRoot /yizhan  
</VirtualHost>;

出现the requested operation has failed提示

问怎么解决
xiaoyuwxz 发表于 2009-8-8 17:23:42 | 显示全部楼层
DocumentRoot 给绝对路径
回复

使用道具 举报

 楼主| sfgsse 发表于 2009-8-20 12:39:39 | 显示全部楼层
sfgsse 谢谢 搞定了
回复

使用道具 举报

 楼主| sfgsse 发表于 2009-9-7 09:49:31 | 显示全部楼层
好方法啊 不错
回复

使用道具 举报

 楼主| sfgsse 发表于 2009-11-24 09:39:49 | 显示全部楼层
我遇到一个非常奇怪的问题 设置两个2级域名 一个可以访问一个不可以访问
http://chris.schoutenchina.com 可以
http://blog.schoutenchina.com  不可以
现在肯定的是
1、域名解析已经生效
2、空间没有问题
3、APACHE配置文件里的配置没有错



谢谢帮助!
回复

使用道具 举报

 楼主| sfgsse 发表于 2009-12-14 10:15:28 | 显示全部楼层
受益匪浅啊
回复

使用道具 举报

 楼主| sfgsse 发表于 2009-12-25 15:23:08 | 显示全部楼层
没有人在用吗
回复

使用道具 举报

 楼主| sfgsse 发表于 2010-3-31 09:35:05 | 显示全部楼层
http://www.sfgsse.cn/
回复

使用道具 举报

allney 发表于 2010-7-26 17:24:07 | 显示全部楼层
我也遇到了同样的问题,不过我是内网IP
NameVirtualHost 10.1.26.195
<VirtualHost 10.1.26.195>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "E:/wwwroot"
    ServerName http://10.1.26.195/sg-erphr
    DirectoryIndex index.php
    ErrorLog "E:/wwwroot/ErrorLog"
    CustomLog "E:/wwwroot/CustomLog"
</VirtualHost>
<VirtualHost 10.1.26.195>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "F:/wwwroot"
    ServerName http://10.1.26.195/bbs
    DirectoryIndex index.php
    ErrorLog "F:/wwwroot/ErrorLog"
    CustomLog "F:/wwwroot/CustomLog"
</VirtualHost>

请大侠们帮我看看,是哪儿出错了,把这段注释掉就可以正常启动apache
回复

使用道具 举报

dubin 发表于 2010-9-7 11:00:08 | 显示全部楼层
是apache的
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 12:57 , Processed in 1.617839 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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