By usr122
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.
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.
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!
If you are running Ansible you want to make sure that your server config management isn’t overwriting that file itself. You can also check what user the directory and file are owned by. It maybe a permissions issue, it maybe config management overwriting something since you mentioned Ansible, it maybe you are running that directory as nobody:nogroup with 777 permissions and perhaps there is an exploit somewhere.
But this should not be occurring - files don’t get overwritten - and DigitalOcean droplets aren’t fully managed - which means after they are deployed they are yours to use and there is no file level access that DigitalOcean retains to the droplet after it is running.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.