Report this

What is the reason for this report?

Apache Server-Status Ubuntu 16.04

Posted on January 29, 2021

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.