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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.