Last week I had setup Nginx fully and as far as I knew it was working, until I tried using gunicorn which I had no success with Gunicorn in the end. Then I noticed issues with DOSS attacks coming in and i am unsure if somethings happened to cause my Nginx sever from starting up.
I have accessed both files and they seem to be okay but the main nginx.conf under sites enabled will not save for some reason and file also appears empty?
root@ubuntu-vpc-do-moon:~# /etc/init.d/nginx status ● 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 Mon 2019-11-04 10:54:44 UTC; 1min 43s ago Docs: man:nginx(8) Process: 2550 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Nov 04 10:54:44 ubuntu-vpc-do-moon systemd: Starting A high performance web server and a reverse proxy server… Nov 04 10:54:44 ubuntu-vpc-do-moon nginx: nginx: [emerg] open() “/etc/nginx/sites-enabled/nginx.conf” failed (2: No such file or directory) in /etc/nginx/nginx.conf:62 Nov 04 10:54:44 ubuntu-vpc-do-moon nginx: nginx: configuration file /etc/nginx/nginx.conf test failed Nov 04 10:54:44 ubuntu-vpc-do-moon systemd: nginx.service: Control process exited, code=exited status=1 Nov 04 10:54:44 ubuntu-vpc-do-moon systemd: nginx.service: Failed with result ‘exit-code’. Nov 04 10:54:44 ubuntu-vpc-do-moon systemd: Failed to start A high performance web server and a reverse proxy server.
Any information would be much appreciated
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!