奇怪的错误从Apache试图绑定到未指定的IP

当我尝试启动服务器时,我收到了来自Apache的奇怪错误消息

. * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [Thu Jan 10 17:49:32 2013] [warn] NameVirtualHost 122.174.238.1XX:0 has no VirtualHosts apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [Thu Jan 10 17:49:32 2013] [warn] NameVirtualHost **122.174.238.1XX:0** has no VirtualHosts (99)Cannot assign requested address: make_sock: could not bind to address 122.174.238.1XX:80 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. [fail] 

奇怪的是我不知道从哪里得到22.174.238.1XX IP

我在启用网站中有一个文件:

  <VirtualHost 192.168.1.90:80> DocumentRoot "/home/webmaster/www/thefaXXXX" ServerName thefaXXXXX.cu.cc <Directory "/home/webmaster/www/thefaXXXXX"> allow from all Options +Indexes </Directory> </VirtualHost> 

我的主机文件在/ etc / reads中

  127.0.0.1 localhost 127.0.1.1 NightHwack 192.168.1.90 thefaXXXX.cu.cc 192.168.1.90 www.thefaXXXX.cu.cc # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 

我想我的服务器在端口80上侦听192.168.1.90。我试图用webmin删除虚拟服务器,并创build一个新的侦听192.168.1.90(没有服务器名称等),但仍然得到完全相同的错误。

我不明白apache在哪里拿起122 *来自IP

您在/etc/apache2/ports.conf定义了一个静态IP。 重新configuration文件以解决问题。