+ -
当前位置:首页 → 问答吧 → 请教apache 虚拟主机已生效,但总是只能显示apache默认页的问题

请教apache 虚拟主机已生效,但总是只能显示apache默认页的问题

时间:2010-03-20

来源:互联网

[root@www conf]# httpd -t -D DUMP_VHOSTS
VirtualHost configuration:
192.168.1.1:*       is a NameVirtualHost
         default server www.aaa.cn (/usr/local/apache/conf/extra/httpd-vhosts.conf:43)
         port * namevhost www.aaa.cn (/usr/local/apache/conf/extra/httpd-vhosts.conf:43)
         port * namevhost www.bbb.cn (/usr/local/apache/conf/extra/httpd-vhosts.conf:56)
Syntax OK

NameVirtualHost 192.168.1.1
<VirtualHost 192.168.1.1>
  ServerAdmin [email protected]
  DocumentRoot  /home/www
  ServerName www.aaa.cn
  DirectoryIndex   default.htm
  <Directory /home/www>
    Order allow,deny
    Allow from all
  </Directory>
  ErrorLog logs/www-error_log
  CustomLog logs/www-access_log common
</VirtualHost>

虚拟机看似生效了,但是实际访问依然是apache的默认主页,实在是不解,请问谁遇到过类似问题

作者: linuxpotato   发布时间: 2010-03-20

看下error里面有什么内容

作者: ruochen   发布时间: 2010-03-22

把selinux disable了

作者: scyzxp   发布时间: 2010-03-22