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)
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!
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
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.