Report this

What is the reason for this report?

How to stop show de default page Nginx?

Posted on April 22, 2016

I setup a nginx server, but when I stop or uninstall it, always keeps showing the home page default. Like being in cache. Even with the Droplet off, if you enter the ip browser opens the default page.

I would stop when the server does not show this page



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.

This comment has been deleted

Hello,

Technically speaking once the Droplet is off or deleted, you should no longer be able to access the IP over HTTP as there is no webservice available to handle the traffic.

Can you verify that you’ve stopped the correct Droplet and that there is no typo in the IP that you are visiting?

Additionally, in case that you have a domain name and you want to disable the Nginx default page, you can do removing the index.html file from the /var/www/html directory and also adding a new server block and deleting the default one as described here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

Best,

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.