Apache status
For Debian:
Open file /etc/apache2/apache2.conf
Find line <Location /server-status>
Uncomment whole section until you reach line </Location>
Domain “.example.com” replace with IP address “127.0.0.1”
Restart your apache server
/etc/init.d/apache2 restart
For Ubuntu:
Open file /etc/apache2/apache2.conf
Find line <Location /server-status> (If you don't find this line, try it in /etc/apache2/mods-enabled/status.conf)
Uncomment whole section until you reach line </Location>
On line begins with “Allow from” add IP address “127.0.0.1”
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:
-
Add primary IP address of your server to “<Location /server-status>” section of your Apache configuration and restart Apache server