Hey all,

 I'm attempting to setup the server-status module and limit access to it by
IP.

So I have this block in my apache configuration file:

#Mod_status config
    ExtendedStatus on
<Location /server-status>
    SetHandler server-status
    Require ip 10.10.10.5 127.0.0.1
</Location>

And if I do a GET by IP, I'm getting permission denied

[root@uszwslp00031la apache2]# GET http://$(hostname -i)/server-status
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /</title>
 </head>
 <body>
<h1>Index of /</h1>
<ul><li><a href="healthcheck.php"> healthcheck.php</a></li>
</ul>
</body></html>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
*<p>You don't have permission to access /server-status*
on this server.<br />
</p>
</body></html>

Can someone please let me know where I'm going wrong?

Thanks
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Reply via email to