Site does not appear when I installed NGINX


  1. I created a droplet.
  2. I added a domain via DNS to the droplet.
  3. I updated the droplet and upgraded it with the commands apt-get update and apt-get upgrade
  4. I changed the NS for the domain to, and to
  5. I added A records and AAAA records for the domain which point to the droplets IP.
  6. I installed nginx with the command apt-get install nginx
  7. I did service nginx start

But when I visit the domain it is empty… No welcome to NGINX message… the site is empty?

If anyone can help me with this I would be happy.

Show comments

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.

Adding to @valerian’s comment, also note that it can take a few hours before DNS records propagate completely. Try visiting the IP address in your browser, you should see the Nginx welcome page. If not, you might want to check out:

It works now! I had a CNAME error in the DNS of the domain. After I removed it the site started to work!