如何阿帕奇确定FQDN? [英] How does Apache determine the FQDN?

查看:208
本文介绍了如何阿帕奇确定FQDN?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Apache2,并重新加载/重新启动服务器时,我得到这样的警告:

I'm using Apache2, and when reloading/restarting the server I get this warning:

apache2的:无法可靠地确定了服务器的完全合格的域名,使用(我FQDN)对于ServerName

一切工作正常,但我试图找出是什么导致了错误。我抓源头,看看能不能找到它,但因为我的C不是很好....

Everything works fine, but I'm trying to figure out what's causing the error. I'm grabbing the source to see if can find it, but since my C's not very good....

一些注意事项:


  • 如果我更改系统主机名,Apache使用新的主机名

  • 我有一个服务器名称集;它的主机名相同

  • 我有一个静态的,唯一的IP - 挖(主机名)返回(我的IP),挖-x(我的IP)返回(主机名)

  • 我的hosts文件是正确

  • Some notes:

    • If I change the system hostname, Apache uses the new hostname
    • I have a ServerName set; it's the same as the hostname
    • I have a static, unique IP - dig (hostname) returns (my ip), dig -x (my ip) returns (hostname)
    • My hosts file is correct
    • 版本:

      
      Apache/2.2.9
      Linux 2.6.24-23-xen x86_64
      Description:    Debian GNU/Linux 5.0 (lenny)
      

      任何想法?

      推荐答案

      你确定你有正确的价值服务器名称指令 - 任何<虚拟主机> 块? (您还需要一个服务器名称里面的每个<虚拟主机> 块,当然)

      Are you sure you have a ServerName directive with the proper value - outside any <VirtualHost> blocks? (You also need a ServerName inside each <VirtualHost> block, of course)

      在Apache的给出了该错误信息,通常这意味着它没有找到一个服务器名称服务器作为一个整体。如果您有该指令设置不当,我无法想象,为什么阿帕奇仍然会抱怨...

      When Apache gives out that error message, usually it means that it's not finding a ServerName for the server as a whole. If you do have that directive set properly, I can't imagine why Apache would still be complaining...

      这篇关于如何阿帕奇确定FQDN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆