How to prevent nginx from replacing my index.html with default nginx welcome page.

Posted March 29, 2020 184 views


Every few days/weeks, my index.html page gets replaced with the “Welcome to nginx!” page. I’ve automated reupload enough for it to be a non-issue but i would still like to identify what causes this or fixes the overwriting of my file.


I am using the latest nginx on a DigitalOcean Droplet as of 03/29/2020.
Deployed using latest Ansible as of 03/29/2020.

proposed fixes

Another user poster the same question here but that was in 2016 and no solution has been found yet.
Currently I have a cron job alerting me when a file changes and manually run reupload.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!