+ -
当前位置:首页 → 问答吧 → Apache报错,不知道怎么解决

Apache报错,不知道怎么解决

时间:2008-06-15

来源:互联网

apache报错如下:

_default_ VirtualHost overlap on port 80, the first has precedence

我的httpd.conf的虚拟主机设置:

NameVirtualHost XX.XX.XX.XX :80

<VirtualHost *:80>
      ServerAdmin [email protected]
      DocumentRoot /www/www.xxx.xxx
      ServerName www.xxx.xxx
      ServerAlias *.xxx.xxx
      ErrorLog logs/www.xxx.xxx-error_log
      CustomLog logs/www.xxx.xxx-access_log common
      DirectoryIndex index.jsp index.php index.htm index.html
</VirtualHost>

<VirtualHost *:80>
      ServerAdmin [email protected]
      DocumentRoot /www/www.xxx.xxx
      ServerName www.xxx.xxx
      ServerAlias *.xxx.xxx
      ErrorLog logs/www.xxx.xxx-error_log
      CustomLog logs/www.xxx.xxx-access_log common
      DirectoryIndex index.jsp index.php index.htm index.html
</VirtualHost>

<VirtualHost *:80>
      ServerAdmin [email protected]
      DocumentRoot /www/www.xxx.xxx
      ServerName www.xxx.xxx
      ServerAlias *.xxx.xxx
      ErrorLog logs/www.xxx.xxx-error_log
      CustomLog logs/www.xxx.xxx-access_log common
      DirectoryIndex index.jsp index.php index.htm index.html
</VirtualHost>

NameVirtualHost XX.XX.XX.XX :80 是在最上面设置了就可以了还是要每一个<VirtualHost *:80>前都要设置?

虚拟主机好像设置的有错误,一时也找不出错在哪里。。
希望知道的朋友帮帮忙看看。。

作者: Fluorine   发布时间: 2008-06-14

都每一个<VirtualHost *:80>前都要设置

作者: fanglq04   发布时间: 2008-06-16

最上面设置了就可以了

作者: ShiningRay   发布时间: 2008-06-27

我怀疑是ServerName重复了?

作者: ShiningRay   发布时间: 2008-06-27

热门下载

更多