After restoring my droplet backup, in place of my fully functional wordpress website, it is showing "Welcome to nginx!" page (Emergency)

My Wordpress website: was functional and on LEMP but after I restored my droplet backup yesterday in place of Wordpress website it is showing “Welcome to nginx!” page. I am not well versed with exact console command but can execute it in putty if you provide it. Please help me with its solution along with the command. I am really scared that I will lose my website.


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!

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, @rahuljaiswalrj1989

Could you please double check the Nginx configuration file for your domain name and make sure it’s pointing to the correct directory?

My assumption is that somehow the restore changed the content of the nginx config file or had overwritten it completely. If you can shed more light on what exactly happen during the restore and what files have been restored this can help us to find the culprit of the issue.

You can check the nginx configuration file using a text editor like nano, vi or vim:

sudo nano /etc/nginx/sites-available/

You can also copy the content of the file here so we can check it and see if something is wrong with the current setup.

Hope this helps!

Regards, Alex