Skip to main content
  1. Posts/

Monitor Apache Web Server with mod_status

·1 min·
apache apache

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.

Related

Cara Menginstal ModSecurity di Apache
·2 mins
apache apache modsec
Menggunakan Apache Sebagai Proxy dan Load Balancer
·1 min
apache apache ubuntu
Install Apache dengan PHP-FPM dan Userdir
·3 mins
apache ubuntu linux php apache
Enable Userdir Module httpd
·2 mins
apache apache
Blocking XMLRPC WordPress with ModSecurity
·2 mins
modsec apache modsec
Using ModSecurity to Block Web Crawlers
·1 min
modsec modsec apache