LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 951|回复: 3

为什么我的Apache服务加了虚拟主机后就无法启动了?

[复制链接]
发表于 2004-4-20 19:35:39 | 显示全部楼层 |阅读模式
为什么我的Apache服务加了虚拟主机后就无法启动了?提示错误如下:

Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Tue Apr 20 17:22:48 2004] [warn] NameVirtualHost 172.31.6.6:0 has no VirtualHosts
(99)Cannot assign requested address: make_sock: could not bind to address 172.31.6.9:80
no listening sockets available, shutting down
Unable to open logs!
发表于 2004-4-21 10:26:14 | 显示全部楼层
你的虚拟主机部分肯定写错了。
发表于 2004-4-21 13:02:47 | 显示全部楼层
Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
这句没问题
 楼主| 发表于 2004-4-22 16:52:14 | 显示全部楼层
NameVirtualHost 172.31.6.151:80
<VirtualHost 172.31.6.151>
DocumentRoot "/var/zzz"
ServerName zzz.qlsedu.com
ServerAdmin zzz@qlsedu.com
</VirtualHost>
如上提示:
Starting httpd: [Thu Apr 22 15:53:04 2004] [error] VirtualHost 172.31.6.151:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表