My index.html file in Nginx automatically gets overwritten with the Nginx defaul index.html file for no reason.
I’m running Nginx on Ubuntu 14.04. I have my website installed in the default /usr/share/nginx/html directory. My website works fine for several days and then the system automatically overwrites my websites index.html file with the default Nginx “Welcome to nginx!” index.html file. I have to go back and copy my website’s index.html file again in order for my website to work. I’ve had my website up for a couple of weeks now and this has happened three times. My website will work for a few days and then my index.html file will get overwritten. There is no method to the madness. Does anyone know what might be causing this to happen?
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.