User Tools

Site Tools


apache_status

Apache status

For Debian:

  1. Open file /etc/apache2/apache2.conf
  2. Find line <Location /server-status>
  3. Uncomment whole section until you reach line </Location>
  4. Domain “.example.com” replace with IP address “127.0.0.1”
  5. Restart your apache server
    /etc/init.d/apache2 restart

For Ubuntu:

  1. Open file /etc/apache2/apache2.conf
  2. Find line <Location /server-status> (If you don't find this line, try it in /etc/apache2/mods-enabled/status.conf)
  3. Uncomment whole section until you reach line </Location>
  4. On line begins with “Allow from” add IP address “127.0.0.1”
  5. Restart your apache server
    /etc/init.d/apache2 restart

You need to have modul mod_status.c installed. This modul is default part of apache2 in debian and ubuntu.

You can check your previous changes with

links http://127.0.0.1/server-status?auto

or

lynx http://127.0.0.1/server-status?auto

If your apache don't listen on localhost IP and standard port (127.0.0.1:80 or 0.0.0.0:80 - you can check with command “netstat -tlpn | grep apache”), you have to:

  1. Edit /etc/bijk/bijk-node-plugins.conf, change APACHE_STATUS_URL = http://YOUR_IP:YOUR_PORT/server-status?auto and restart Bijk daemon
  2. Add primary IP address of your server to “<Location /server-status>” section of your Apache configuration and restart Apache server
apache_status.txt · Last modified: 2010/05/20 15:35 by vladimir.kruzik