Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable apache server-status check

In apache access.log following lines are coming and as a result my response time metric is getting affected.How can i disable/remove these lines from access.log?

127.0.0.1 - - [10/Aug/2017:08:38:22 +0000] "localhost.****.com" "GET /server-status?auto HTTP/1.1" 200 300 291 "-" "Ruby"

like image 212
Sarath S Avatar asked Jun 17 '26 21:06

Sarath S


2 Answers

This functionality comes from a standard module called status and so you can simply disable that module to remove the /server-status endpoint.

On a Debian-based server, that means running:

a2dismod status

and then restarting the web server:

apache2ctl configtest
systemctl restart apache2.service
like image 137
François Marier Avatar answered Jun 23 '26 02:06

François Marier


Comment below lines in httpd.conf

#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from localhost 127.0.0.1
#</Location>

Also is check if any cronjob is running in server.
like image 21
dot Avatar answered Jun 23 '26 03:06

dot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!