顯示具有 Apache 標籤的文章。 顯示所有文章
顯示具有 Apache 標籤的文章。 顯示所有文章

2014年12月28日 星期日

[Apache] 解決 Could not reliably determine the server's fully qualified domain name ...

如果apache剛灌好,啟動時總會出現以下錯誤訊息:

Starting httpd: httpd: apr_sockaddr_info_get() failed for xxx
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[Apache]建立虛擬網站 virtual hosts

參考網站:

[1] http://twohlix.com/2011/05/setting-up-apache-virtual-hosts-on-centos/


1.建立相關資料夾

#mkdir /etc/httpd/sites-available
#mkdir /etc/httpd/sites-enabled

這裡要說明一下為什麼要建立兩個資料夾
依照apache給的設定,只需要載入某個資料夾的 *.conf 就可正常執行了。

[Apache] log檔分割工具-cronolog

參考網址:
[1] http://loki.ind.ntou.edu.tw/blog/?p=744
[3] http://disp.cc/b/11-3SOT

    # wget http://fossies.org/linux/www/cronolog-1.6.2.tar.gz
2. 解壓縮 tar zxvf cronolog-1.6.2