How To Setup mod_status On Vestacp Apache Server

Published by Anand on

VestcCP is an amazing free and open-source web-hosting control panel. What I love the most about Vestcp is that it comes pre-configured with Nginx as a reverse proxy to serve all the static files while the PHP requests are sent to Apache for processing.

By default VestaCP comes with following web-server configurations :

Nginx as frontend/reverse-proxy:

  • Listens to the ports 80 and 443
  • Serves static files directly
  • Forwards PHP requests to Apache

Apache as backend:

  • Listens to ports 8080 and 8443
  • Serves PHP requests to Nginx
  • Nginx returns the response to the client

 Setup mod_status (server-status) on Vestacp

Alright, with all that info let’s proceed with the steps to enable mod_status on the apache servers in a Vestacp installation.

mod_status is enabled by default in Vestacp. However, you make slight changes in the configuration in order to access it via /server-status.

1. Run the command

sudo vi /etc/httpd/conf.d/status.conf

It opens the configuration file for mod_status in Vestacp.

2. Now change the first line from



Listen *:8081

3.  Then, in the configuration that looks like this

<Location /server-status>
   SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from

Add  Allow from YOUR_IP_HERE

or, if you would like anybody to access the server-status page then you can simply remove the Order/Deny/Allow directive and keep the configuration as simple as this:

<Location /server-status>
SetHandler server-status

3. Save the file and exit vim (I know you can)
4. Restart apache

On Debian/Ubuntu: sudo service apache2 restart
On RHL/CentoS: sudo service httpd restart

And, if all went right, you can access the server-status page by visiting

Where  is your server’s FQDN/hostname or IP address.