Chinaunix

标题: 求助 继续问一个关于apache的问题 [打印本页]

作者: zjblove    时间: 2007-05-29 23:26
标题: 求助 继续问一个关于apache的问题
apachectl start后出现

httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

请这是什么意思啊?

安过N次apache了 第一次见这种情况
作者: isjfk    时间: 2007-05-29 23:52
你的主机名设置不规范,应该设置成 foo.com、bar.foo.com 这样的形式。

编辑 /etc/rc.conf,修改其中的 hostname="xxx" 部分
作者: zjblove    时间: 2007-05-29 23:55
感谢 大大  我试试
作者: zjblove    时间: 2007-05-29 23:56
hostname="ssmetin.com"
我的就是这样

httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
作者: ezgo    时间: 2007-05-29 23:59
把httpd.conf或虛擬主機貼上來吧
作者: zjblove    时间: 2007-05-30 00:38
httpd.conf
太大了 发不出来
作者: isjfk    时间: 2007-05-30 08:49
原帖由 zjblove 于 2007-5-29 23:56 发表
hostname="ssmetin.com"
我的就是这样

httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

那你的 /etc/hosts 呢?检查有没有这样一行:
127.0.0.1               localhost.ssmetin.com localhost
作者: lingfengxp    时间: 2007-05-30 08:57
有时候一个服务器要启用多个虚拟主机,
建议把httpd.conf里的
servername 这行改为:
servername IP     //IP为你的服务器IP




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2