開啟Apache Server Status

來源:互聯網
上載者:User

標籤:http   io   ar   sp   strong   檔案   div   on   art   

開啟Apache Server Status

發布時間:August 1, 2008 分類:Apache

《DdZend工具提供下載》

《PHP中MD5函數效率》

Apache的日誌又多又雜,如果靠分析日誌或者查看伺服器處理序來監視Apache運行狀態的話,比較繁冗。其實在Apache 1.3.2及以後的版本中就內建一個查看Apache狀態的功能模組server-status

開啟Apache Server Status
如果你的Apache設定檔httpd.conf或者extra/httpd-info.conf中有LoadModule status_module modules/mod_status.so話,說明你的Apache已經載入了此模組;或者編譯的時候加上了--enable-module=so也表明伺服器支援server-status。

如果Apache沒有載入這個模組,如果是linux伺服器,就得重新編譯Apache,加上--enable-module=so參數即可;如果你是windows系統的話,無需任何編譯,只要把剛才時候說的LoadModule status_module modules/mod_status.so這句加上,如果前面有帶#號,開啟的話,需要將#去除。

配置Apache Server Status

<location /ccvita-server-status>
         SetHandler server-status
         Order Deny,Allow
         Deny from all
         Allow from www.ccvita.com
</location>
ExtendedStatus On


這是一個完整的server-status的配置。
第一行的ccvita-server-status表示以後可以用類似http://www.ccvita.com/ccvita-server-status來訪問,同時
http://www.ccvita.com/ccvita-server-status?refresh=N將表示訪問狀態頁面可以每N秒自動重新整理一次;
Deny from表示禁止的訪問地址;
Allow from表示允許的地址訪問;
ExtendedStatus On表示的是待會訪問的時候能看到詳細的請求資訊,另外該設定僅能用於全域設定,不能在特定的虛擬機器主機中開啟或關閉。啟用擴充狀態資訊將會導致伺服器運行效率降低。

開啟Apache Server Status

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.