Outils personnels

Activation de server-status

De wikiGite

Révision datée du 28 septembre 2010 à 14:34 par Frank (discussion | contributions)

Permet d'avoir le statut du serveur et de ses modules

Utile aussi pour plugins munin apache_*

  1. Activer le module status (a2enmod status)
  2. Autoriser l'accès : modifier apache2.conf, décommenter :
<IfModule mod_status.c>
   #
   # Allow server status reports generated by mod_status,
   # with the URL of http://servername/server-status
   # Change the ".example.com" to match your domain to enable.
   #
   <Location /server-status>
       SetHandler server-status
       Order deny,allow
       Deny from all
       Allow from 127.0.0.1
   </Location>
</IfModule>

et ajouter ExtendedStatus On juste avant <Location /server-status>. Redémarrer Apache.

Le status est accessible via http://128.0.0.1/server-status, ou server-status?auto. Le localhost est suffisant pour l'accès local du plugin munin, pas besoin d'ouvrir au monde.