Question

Apache Server-Status Ubuntu 16.04

Posted January 29, 2021 133 views
ApacheUbuntu 16.04

Hello,

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 139.59.188.30
        </Location>

139.59.188.30 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 139.59.188.30/server-status

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.

×
1 answer

Hi there @jonesypeter7fa4,

I could suggest also adding 127.0.0.1 to your allowed IPs list.

Let me know how it goes!
Regards,
Bobby

Submit an Answer