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> |