Monitor Apache Web Server with mod_status

Modul mod_status adalah modul Apache yang memungkinkan administrator server dapat mengetahui seberapa baik performance web server Apache mereka. Modul ini akan menampilkan informasi mendetail pada halaman HTML dalam bentuk yang mudah dibaca dan dapat di refresh secara otomatis di browser Anda.

Enabling Status Support

Untuk mengaktifkan status reports, tambahakan kode ini pada file httpd.conf atau file konfigurasi vhost.

ExtendedStatus on

<Location "/server-status">
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1 ::1 localhost
</Location>

<Location "/server-info">
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1 ::1 localhost
</Location>

Restart service Apache untuk menerapkan perubahan.

systemctl restart httpd

Anda sekarang dapat mengakses statistik server menggunakan browser Web melalui alamat http://localhost_OR_IP/server-status

Automatic Updates

Untuk membuat halaman dapat diupdate secara otomatis, akses menggunakan alamat http://localhost_OR_IP/server-status?refresh=N. N adalah waktu dalam detik.