Hello all,
I need to access server-status only from localhost so I created a basic rule in my httpd.conf, the server has SSL enabled
Code:
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
ExtendedStatus On
</IfModule>
LoadModule status_module modules/mod_status.so
it should only allow 127.0.0.1 connections but when i try to get the status from any ip of the server, i can access to it
Code:
[root@xxxxxxxx:/tmp]# wget 172.30.16.34:443/server-status
--2019-08-20 08:29:59-- http://172.30.16.34:443/server-status
Connecting to 172.30.16.34:443... conectado.
Petitionn HTTP sent, esperando respuesta... 200 No headers, assuming HTTP/0.9
Longitud: no especificado
Saving to: `server-status.7'
[ <=> ] 480 --.-K/s in 0s
2019-08-20 08:29:59 (73,9 MB/s) - `server-status.7' saved [480]
also tried to create a <Virtualhost*:443> using the same code, with no results
what am i doing wrong?
thanks!