Report this

What is the reason for this report?

Nginx wont serve updated web content

Posted on March 6, 2020

Hi! I added new updated files for my website. I restarted Nginx and it still showing the old files and newer ones are missing or still didn’t update.



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 @SephiaSky,

I think that you might have to delete your default index file and change it with your own index.html file.

Can you share your Nginx configuration here and the content of your /var/www/html folder? To do that you can run:

  1. cat /etc/nginx/sites-enabled/default

And to check the content of your html folder you can run:

ls -lah /var/www/html

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.