Top/Apache/エラー/httpd Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Apache/エラー/httpd Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName の変更点


Apacheを再起動した際に、
 httpd: Could not reliably determine the server's fully qualified domain name, 
 using 127.0.0.1 for ServerName
というエラーが出る場合がある。

これでも起動はするので、Apache自体は動くのだが、エラーをそのままにしておくのは気持ちが悪いし、あとあと問題を引き起こす可能性が高い。

日本語訳をすると
 ServerNameに127.0.0.1を使用した、FQDN(完全に適切なドメイン名)が確定できませんでした。
といった感じか。

このエラーは、/etc/hosts にlocalhost以外に自分で設定したホスト名が、Apacheの設定ファイルに定義されていないために発生する。

 # Do not remove the following line, or various programs
 # that require network functionality will fail.
 127.0.0.1               sysserver localhost.localdomain localhost
と書いた場合、/etc/httpd/conf/httpd.conf のServerNameの設定にも次のように書いておく。

 # ServerName gives the name and port that the server uses to identify itself.
 # This can often be determined automatically, but we recommend you specify
 # it explicitly to prevent problems during startup.
 #
 # If this is not set to valid DNS name for your host, server-generated
 # redirections will not work.  See also the UseCanonicalName directive.
 #
 # If your host doesn't have a registered DNS name, enter its IP address here.
 # You will have to access it by its address anyway, and this will make
 # redirections work in a sensible way.
 #
 #ServerName www.example.com:80
 ServerName sysserver:80

ページ新規作成

新しいページはこちらから投稿できます。

TOP