I am trying to deactivate the
/server-status from an Apache2 running on a Fedora server.
I tried to comment the lines in
/etc/httpd/conf/httpd.conf and I also tried to make it work only for my IP address, like that:
<Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 192.168.100.138 #Allow from 18.104.22.168 #Allow from localhost </Location>
There is also a Tomcat behind the Apache, and I found that configuration on it, played with that also but got no luck…
#JkUnMount /server-status tomcat6 <Location /server-status> SetHandler server-status Order deny,allow Deny from all #Allow from localhost </Location>
I tried to comment and uncomment the JkUnMount line and also the whole location block code.
What am I doing wrong?
Is there any other configuration file that I didn’t notice?
Fedora does not include any
Location blocks for server status, so any that exist were put there by you or another application you installed.
Remove all of the
Location blocks that you set up for this, and then reload Apache.
systemctl reload httpd.service
Most likely you either forgot to remove one of the
Location blocks, or you forgot to reload Apache.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.