Apache Server-Status Ubuntu 16.04

Posted January 29, 2021 648 views
ApacheUbuntu 16.04


I have followed guidance on installing Server-Status on Ubuntu 16.04 Server. I just want to run it directly on my server with lynx.

Firstly I ran sudo a2enmod status and its enabled

Then sudo nano /etc/apache2/mods-enabled/status.conf

And edited the file so:

 <Location /server-status>
                SetHandler server-status
                Require local
                Require ip
        </Location> is my droplet IP address

I also added to the above lines just below <VirtualHost *:80> on sudo nano /etc/apache2/sites-enabled/000-default.conf

I also added the following to .htaccess

RewriteCond %{REQUEST_URI} !=/server-status

Finally, sudo systemctl restart apache2

When I try lynx

I get ‘Forbidden
You don’t have permission to access this resource.’

Please can you help? Thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @jonesypeter7fa4,

I could suggest also adding to your allowed IPs list.

Let me know how it goes!