Question

Apache Server-Status Ubuntu 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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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