If you have mod_status enabled but still got this error (403) when trying to connect from localhost ( you can should do following:

First, go to /etc/apache2/mods-enabled/status.conf and check that you have all hosts that you want to connect from is added to Allow from, something like this:


<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from ::1

Second, create VirtualHost configuration for with following parameters:

<VirtualHost *:80>
        ServerAdmin superadmin@somemail.com
        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride All
<Directory /var/www>
        Options +FollowSymLinks
        AllowOverride None
        order allow,deny
        allow from all