linux下配置虚拟主机时遇到的问题。
httpd: apr_sockaddr_info_get() failed for localhost.termwikidev
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
查了一下相关资料,解决方法如下:
The repair is very easy, just fix your hosts file locate at `/etc/hosts`.
First, determing your hostname of the machine that you are on…
#> hostname
someserver1.host-name.net
Then open your hosts file…
#> vi /etc/hosts
Then change all the host items to match
::1 localhost.someserver1.host-name.net localhost
127.0.0.1 localhost.someserver1.host-name.net localhost
192.1.0.123 someserver1.host-name.net someserver1
192.1.0.123 someserver1.host-name.net.
Then start the server again…
#> apachectl start
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.
#> …
All set!!!
本文永久链接: http://www.zzxj.net/blog/fxs_2008/archive/2010/07/01/182.html
发表于 @ 2010年07月01日 |评论(loading... )|收藏