Load the module
LoadModule status_module modules/mod_status.so
- for Apache 2.2:
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 localhost ip6-localhost 203.0.113.2
</Location>
ExtendedStatus On
</IfModule> - for Apache 2.4:
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
<RequireAny>
Require local
Require ip 203.0.113.2
</RequireAny>
</Location>
ExtendedStatus On
</IfModule>