Report this

What is the reason for this report?

Why does the index.nginx-debian.html magically appear in my /var/www/html/ folder?

Posted on April 23, 2020

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!

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.

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?

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.