what can i do ?

root@django-s-1vcpu-2gb-nyc1-01:/home/django/LZ# sudo nano /etc/nginx/nginx.conf root@django-s-1vcpu-2gb-nyc1-01:/home/django/LZ# sudo systemctl status nginx ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2021-02-24 21:00:00 UTC; 3min 0s ago Docs: man:nginx(8) Process: 53797 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @enairodiaz,

In such situations, I always recommend checking out the Nginx error log file. In the error_log file you should be able to see the exact reason behind this failure and act upon it.

Normally the file is located in /var/log/nginx/. In that folder it should be called error_log. What you can do is try and get the last lines of the file with

tail -n 30 /path/to/error_log

In there check the messages that say ERROR those are the ones you care about.

Regards, KFSys