Forbidden (403), when accessing server-status on apache 2.2.22
The Allow from line doesn't have to do with your website.
Allow from allows people with a specified IP address (or domain name that resolves to an IP) to access your website.
So if your home has an IP address of 18.104.22.168, you would put
allow from 22.214.171.124 and NOT
allow from yourownwebsite.com.
That should fix your 403 (forbidden), although I realize you said you tried changing that to 127.0.0.1, and accessing it directly from the server. Have you tried changing 127.0.0.1 to
Now, regarding the 404. That's a different issue entirely. That's a "Not Found" error, and not a "forbidden" error.
VirtualHost containers, by default, aren't really meant to be used with mod_status. It simply will not work. According to this website, you have 2 options:
- Make the server listen on an alternative port (such as 8080)
- Change the asterisk in to your server's public IP address - then, you can access the server-status only from localhost / 127.0.0.1
Check if you have the right VirtualHost configuration. You can try to create VirtualHost config for
127.0.0.1, like this:
<VirtualHost *:80> ServerAdmin [email protected] ServerName 127.0.0.1 DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www> Options +FollowSymLinks AllowOverride None order allow,deny allow from all </Directory> </VirtualHost>
Found it here