I am using Apache 2.4.18 on Ubuntu.
I want to allow reading server status only from localhost.
In /etc/apache2/mods-enabled/status.conf
I have:
<Location /server-status>
SetHandler server-status
Require ip 127.0.0.1
</Location>
I have read https://httpd.apache.org/docs/2.4/howto/access.html and and from I belive the above configuration should be working. I have restarted Apache to ensure that new configuration is active. However the status page is still open for reading from anywhere.
In /etc/apache2/sites-enabled/mysite.conf
I have:
DocumentRoot /var/www
<Location />
Require all granted
</Location>
What is wrong with my configuration?