您的位置:首页 > 运维架构 > Apache

apache重启和语法检查过程中的几个小错误解决

2011-06-03 09:41 246 查看
重启apache时出现如下提示,虽然不影响apache的正常运行,但看着就别扭,还是解决掉吧:
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[Fri Jun 03 08:42:38 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence



apache语法检查时出现如下提示:
# apache2 -t
apache2: bad user name ${APACHE_RUN_USER}
1、# vi /etc/apache2/apache2.conf
127 User www-data
128 Group www-data



2、apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
解决方法:
# vi /etc/apache2/httpd.conf
添加
ServerName localhost



3、[Fri Jun 03 08:42:38 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
解决方法:
# vi /etc/apache2/ports.conf
添加
NameVirtualHost *:443



最后重启apache即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐