service status apache code example

Example 1: apache2 status

sudo systemctl status apache2

Example 2: check if apache new config is running centos

To check Apache new configuration run this command line:
	apachectl configtest

Example 3: apache server status tutorial

User webuser
Group webgroup
ServerName www.butterthlies.com
DocumentRoot /usr/www/site.status/htdocs

<Location /status>
order deny, allow
allow from 192.168.123.1
deny from all
SetHandler server-status
</Location>

<Location /info>
order deny, allow
allow from 192.168.123.1
deny from all
SetHandler server-status
SetHandler server-info
</Location>