Re: [問題] 關於apache的設定
※ 引述《rhrphu.bbs@ptt.cc (小豆)》之銘言:
> 今天剛灌了5.4
> 也灌了apache
> 設定的步驟都跟之前的版本設定的一樣
> 但是一直出現
> httpd: Could not determine the server's fully qualified domain name,
> using 127.0.0.1 for ServerName apachectl start: httpd could not be started
> 請問一下是因為版本不同設定不一樣
> 還是哪裡有問題
> 看了前面一樣的問題
> 也做了同樣的設定
> 還是不行
> 麻煩幫忙解答
請看 /usr/local/etc/apache/httpd.conf ServerName 的部份
#
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
另外訊息應該夠明險了吧?
httpd: Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName apachectl start: httpd could not be started
[亂亂中譯]
httpd:不可以判定 Server 的 FQDN( server's fully qualified domain name ),
請為 ServervName (註1) 使用 127.0.0.1
apachectl start:httpd 不能被啟動
註1:httpd.conf 內有個 ServerName 的設定區塊
--
╭┼ Origin: a6's˙大家來瘋小棧 BBS.a6Crazy.twbbs.org
┼┘ Author: a6530466 從 localhost.a6crazy.twbbs.org 發表
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 2 之 4 篇):
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章