如何開啟並且存取 Apache Status Module 來觀察 Server 連線?

確認 Apache 的 status_model 有在運作:

# apache2ctl -M | grep status
status_module (shared)

修改檔案 /etc/apache2/mods-enabled/status.conf

<IfModule mod_status.c>
    <Location /server-status>
        SetHandler server-status
        <RequireAny>
        Require ip 123.234.123.234
        </RequireAny>
    </Location>
    ExtendedStatus On
</IfModule>

重啟 Apache Web Server

service apache2 restart