90 likes | 108 Views
Apache server status dashboard tracks key server metrics for server health. Here is how to enable Apache server status dashboard page.<br>#apache #webdevelopment <br><br>Visit https://ubiq.co/tech-blog/how-to-enable-apache-server-status-dashboard-page/
E N D
Enable mod_status Apache configuration file is located at one of the following locations, depending on your Linux distribution. /etc/apache2/httpd.conf, /etc/apache2/apache2.conf, /etc/httpd/httpd.conf, /etc/httpd/conf/httpd.conf Open terminal and run the following command to open Apache configuration page. $ sudo vi /etc/httpd/conf/httpd.conf Look for the following line #LoadModule status_module modules/mod_status.so Uncomment it by removing # at its beginning.
Configure mod_status Look for the following block of code or search for location #<location server-status=""> # SetHandler server-status # Order deny,allow # Deny from all # Allow from .example.com #</location> Uncomment the location block by removing # in front of its lines, and update the Allow, Order and Deny directives as shown below.
Configure mod_status <Location /server-status> SetHandler server-status Order allow,deny Deny from all Allow from all </Location>
Configure mod_status Also, this configuration will not work for Virtual Hosts. If you have configurated Virtual Hosts, then you need to place this location block inside the VirtualHost block, as shown below. <VirtualHost *:80> … <Location /server-status> … </Location> … </VirtualHost>
Enable Extended Status You can optionally enable extended status to track more metrics such as CPU Usage, Requests per second, total traffic, etc. by looking for the following line # ExtendedStatus On and uncommenting it by removing # in front of it. ExtendedStatus On
Restart Apache Web Server Restart Apache web server to apply changes. # service httpd restart OR # systemctl restart httpd OR # sudo service apache2 restart
Verify Server Status Open web browser and visit /server-status page of your domain. If your domain is www.example.com, go to http://www.example.com/server-status
Thank You Visit for details https://ubiq.co/tech-blog/how-to-enable-apache-server-status-dashboard-page/