LinuxSir.cn,穿越时空的Linuxsir!

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

虚拟主机问题

[复制链接]
发表于 2003-5-16 17:48:40 | 显示全部楼层 |阅读模式
rh9.0 中,我用基于名字的做apache虚拟主机,可是到测试时,显示的网页都是虚拟主机下的主页。请问各位大侠这个问题该如何解决!我的httpd.conf文件如下:#
# Use name-based virtual hosting.
#
NameVirtualHost 10.8.46.181


# Where do we put the lock and pif files?
LockFile "/var/lock/httpd.lock"
CoreDumpDirectory "/etc/httpd"

# Defaults for virtual hosts
# Logs
#
# Virtual hosts
#

# Virtual host syw.w2.com
<VirtualHost 10.8.46.181>
        DocumentRoot /var/www/htm
       
       
        ServerName www.w2.com
        <Directory "/var/www/htm/">
                 AllowOverride none
               
               
               
        </Directory>
</VirtualHost>
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

<Directory "/">
        Options FollowSymLinks
        
        AllowOverride None
        
        
        
</Directory>

<Directory "/var/www/html">
        Options Indexes Includes FollowSymLinks
        
        AllowOverride None
        Allow from from all

        
        Order allow,deny
</Directory>

<Directory "/var/www/icons">
        Options Indexes MultiViews
        
        AllowOverride None
        Allow from from all

        
        Order allow,deny
</Directory>

<Directory "/var/www/cgi-bin">
        Options ExecCGI
        
        AllowOverride None
        Allow from from all
        
        Order allow,deny
</Directory>
发表于 2003-5-16 17:50:26 | 显示全部楼层
不要用虚拟主机选项
 楼主| 发表于 2003-5-16 18:01:59 | 显示全部楼层
可是我想让我的一个主机同时能运行几个网站!
这还是要用虚拟主机吧?
请各位大哥帮忙看看,希望能告诉我关于虚拟主机在rh9.0中如何配置,谢谢了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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