[warn] _default_ VirtualHost overlap on port 88, the first has precedence

在实用LNMPA的时候,发现出现一个奇怪的错误.

[warn] _default_ VirtualHost overlap on port 88, the first has precedence

因为LNMPA的apache是监听了88端口,普通是80端口.

出现这个问题搜索了网络,发现很多都是去掉注释个帖子....帖子又没写详细

对于那些刚接触不久的人来说.很难搞清楚怎么弄.

这里贴出完整配置

因为我的主机www.ifeisu.com 配置是放在vhost/目录下的,在httpd.conf中include进去

单独的配置文件如下

NameVirtualHost *:88

<VirtualHost *:88>
ServerAdmin [email protected]
php_admin_value open_basedir "/home/wwwroot/www.ifeisu.com:/tmp/:/var/tmp/:/proc/"
DocumentRoot "/home/wwwroot/www.ifeisu.com"
ServerName www.ifeisu.com
ErrorLog "logs/www.ifeisu.com-error_log"
CustomLog "logs/www.ifeisu.com-access_log" common
</VirtualHost>

红色字体部分是关键.加上这句就好了.88是我服务监听的端口,普通默认是80端口.

各位自己改成80.

你可能感兴趣的:(apache,网络,include)