星期一, 八月 15, 2005

Apache mod_status 設定

mod_status: The Status module 允許管理員可以了解 server 的執行速率.

參考: Module mod_status

設定方法

1. 修改 apache 設定檔: modules.conf

加入 LoadModule status_module /usr/lib/apache/1.3/mod_status.so

2. 修改 httpd.conf
加入 ExtendedStatus On

3. 於 httpd.conf 加入

<Location /server-status>
SetHandler server-status
AllowOverride None
#Order Deny,Allow
#Deny from all
#Allow from .foo.com
</Location>

以上三個 # 建議要設定, 安全性考量.(Location 後面的可以隨意設定檔名)

再來只要 apache restart 就可以於 http://url/server-status 看到了.

相關標籤
Add this page to del.icio.us Add this page to Yahoo Taiwan's bookmark Add this page to MyShare

發表迴響

標題

內容 (限制 1000 字)

暱稱

電子郵件

個人網頁


 authimage


PS: 若無法留言, 請先確認是否有打開 JavaScript, 造成您的困擾, 實在萬分對不起 Orz...(如果無法留言, 勞煩可以發信給我好嗎? 謝謝.)
PS2: 若您的留言被誤判, 我都會再自行看過, 不需要一直重覆張貼~