LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 616|回复: 7

Apache 2.0這樣配置有沒有問題?為什麽不行?

[复制链接]
发表于 2004-7-21 21:29:50 | 显示全部楼层 |阅读模式
NameVirtualHost 192.168.1.5

<VirtualHost 192.168.1.5>
        ServerAdmin strong@strongd.net
        ServerName bbs.strongd.net
        DocumentRoot /www/bbs/
        DirectoryIndex index.php index.html index.htm  
        ErrorLog /www/bbs/error_log
        CustomLog /www/bbs/access_log common
</VirtualHost>

<VirtualHost 192.168.1.5>
        ServerAdmin strong@strongd.net
        ServerName wap.strongd.net
        DocumentRoot /www/wap/
        DirectoryIndex index.php index.wml
        ErrorLog /www/wap/error_log
        CustomLog /www/wap/access_log common
</VirtualHost>


就是這樣.無論我訪問什麽.strongd.net都默認訪問/www/

幫幫手..thx
 楼主| 发表于 2004-7-23 10:57:41 | 显示全部楼层
但Log正常的.

當我訪問wap.strongd.net時,只會log到www/wap/access_log

其他也一樣!
发表于 2004-7-23 11:22:41 | 显示全部楼层
%80 你的路径有问题,这是基于IP地址的APACHE,跟DNS还有其它的服务器应该没有多大的联系,这样,你先试着用一个网页来定位一下,如果可能找到网页的话,再加另一个网页,这样可能会成功的
    但愿能吧~~~
 楼主| 发表于 2004-7-23 17:38:58 | 显示全部楼层
定位??是不是http://wap.strongd.net/game.php

這樣?

顯示無法打開.
发表于 2004-7-24 14:47:20 | 显示全部楼层
前面的LISTEN应该把这些ip写上。
 楼主| 发表于 2004-7-24 16:47:53 | 显示全部楼层
改為 Listen 192.168.1.5:80
還是不行!
 楼主| 发表于 2004-7-25 21:13:46 | 显示全部楼层
奇怪的就是LOG正常,

當我訪問bbs.strongd.net時.就會log到/www/bbs/access_log文件中.
 楼主| 发表于 2004-7-26 08:01:00 | 显示全部楼层
終於搞定了.

原?碛眉恿艘恍

Alias // "/www/"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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