Apache-2.2

如何在 apache 的 mod_status 中僅過濾埠 80 和 443?

  • June 1, 2016

有沒有辦法在查看 mod_status 的 /server-status 時只顯示埠 80 和 443 的請求?

我的 /etc/apache2/mods-available/status.conf 文件:

<IfModule mod_status.c>
       # Allow server status reports generated by mod_status,
       # with the URL of http://servername/server-status
       # Uncomment and change the "192.0.2.0/24" to allow access from other hosts.

       <Location /server-status>
               SetHandler server-status
               #Require local
               #Require ip 192.0.2.0/24
Order allow,deny
   Allow from all
       </Location>

       # Keep track of extended status information for each request
       ExtendedStatus On

       # Determine if mod_status displays the first 63 characters of a request or
       # the last 63, assuming the request itself is greater than 63 chars.
       # Default: Off
       #SeeRequestTail On


       <IfModule mod_proxy.c>
               # Show Proxy LoadBalancer status in mod_status
               ProxyStatus On
       </IfModule>


</IfModule>

謝謝。

我相信不會。

伺服器狀態是查看 - 就像名字說的 - 關於 Apache 伺服器和特定頁面或埠的資訊。

也許“apachetop”可以幫助你。

引用自:https://serverfault.com/questions/780289