Linux Display Apache
web server status?
Open your httpd.conf / or apache2.conf file:
# vi httpd.conf
At the end of file append flowing line that read as follows to allow access from
202.84.36.32 only:
<Location
/server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow
from 202.84.36.32
</Location>
You can also restrict access using a domain name:
<Location
/server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from w1.bigdata.logspot.com
</Location>
Save and close the
file.
Restart web server:
#
service httpd restart
Find a web browser and type the url
http://your-server-ip/server-status or http://your-domain.com/server-status
No comments:
Post a Comment