By abgionescu
I’ve been struggling with a strange issue affecting my droplets: after some running time, the homepage of my website would be replaced by the default, “Welcome to nginx!” screen. This repeatedly happened on a machine that was already set up and did not have any of those default nginx files.
I usually destroy the droplet and immediately rebuild it from backup (since it’s a live server, I wanted to minimize the downtime), but since I’ve seen the issue is reappearing I decided not to do it this time and investigate what happens exactly.
I’ve started with the nginx configuration files, which were identical, but then I’ve found this file “magically” appeared in my /var/www/html/ folder:
index.nginx-debian.html
Any idea why and how this might happen?
I’ve always started with a fully working version from a snapshot, then after a day or so of running fine, this file suddenly appears there and messes up my homepage. I will proceed to change the order in which the files are looked for, in the config, but this issue really bugs me at the moment.
Any idea?
Thanks!
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!
Hello,
It sounds like that you are using an automation tool like Ansible which could be recreating the file on every run.
Can you share some more details on your exact setup and processes?
Hello i have same problems, did you find any solution or why it happened?
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.