July 12th, 2012, 06:30 PM
Mod_status and ip resolution
I'm teaching myself Apache and I came across the server status module (mod_status) as a quick and dirty way to monitor the status of the server. I have it set up according to the directions on the Apache web site but I get 403 Forbidden when I have the following enabled:
Deny from all
Allow from localhost
and I access the server with:
The error log shows:
[Thu Jul 12 16:15:19 2012] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/server-status
Why is it not getting the host name (localhost) and only using the IP address? I tried enabling HostnameLookups (set it to On) and restarted the server but it still doesn't work. Is there something else I'm missing?
July 13th, 2012, 02:02 AM
Im thinking that you have to use IP address when defining the "Allow from" statement..not domain name.
so, try "Allow from 127.0.0.1" instead of localhost and see if that works.
July 13th, 2012, 02:32 AM
The example in httpd.conf has a domain name with a leading . in the form of .example.com. I'm sure if they did this they mean to use names and not numbers.
Originally Posted by DonR
July 13th, 2012, 05:21 PM
try adding the Allow from 127.0.0.1 to your list of "allows" and see if it works. make sure to restart apache after altering the config.
July 13th, 2012, 08:13 PM
Check your error logs, maybe something like open_basedir restriction is really generating the error message. It seems to me the wording of the error is the same.
Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.