I don’t even know where to begin with fixing this issue. Anyone have any advice?
sudo service nginx restart
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
root@web:/var/www/lyndseearmstrong# journalctl -xe
Jan 17 23:33:07 web sshd[11756]: Connection reset by 221.208.195.106 port 50870
Jan 17 23:33:07 web sshd[11756]: PAM 4 more authentication failures; logname= ui
Jan 17 23:33:07 web sshd[11756]: PAM service(sshd) ignoring max retries; 5 > 3
Jan 17 23:33:08 web sshd[11760]: fatal: Unable to negotiate with 91.195.103.166
Jan 17 23:33:09 web sshd[11758]: pam_unix(sshd:auth): authentication failure; lo
Jan 17 23:33:10 web sudo[11762]: root : TTY=pts/0 ; PWD=/var/www/lyndseearms
Jan 17 23:33:10 web sudo[11762]: pam_unix(sudo:session): session opened for user
Jan 17 23:33:11 web sshd[11758]: Failed password for root from 221.208.195.106 p
Jan 17 23:33:14 web sshd[11758]: Failed password for root from 221.208.195.106 p
Jan 17 23:33:14 web sudo[11762]: pam_unix(sudo:session): session closed for user
Jan 17 23:33:16 web sshd[11758]: Failed password for root from 221.208.195.106 p
Jan 17 23:33:18 web sudo[11964]: root : TTY=pts/0 ; PWD=/var/www/lyndseearms
Jan 17 23:33:18 web sudo[11964]: pam_unix(sudo:session): session opened for user
Jan 17 23:33:18 web systemd[1]: Stopped A high performance web server and a reve
-- Subject: Unit nginx.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has finished shutting down.
Jan 17 23:33:18 web systemd[1]: Starting A high performance web server and a rev
-- Subject: Unit nginx.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has begun starting up.
Jan 17 23:33:18 web nginx[11971]: nginx: [emerg] "location" directive is not all
Jan 17 23:33:18 web nginx[11971]: nginx: configuration file /etc/nginx/nginx.con
Jan 17 23:33:18 web systemd[1]: nginx.service: Control process exited, code=exit
Jan 17 23:33:18 web sudo[11964]: pam_unix(sudo:session): session closed for user
Jan 17 23:33:18 web systemd[1]: Failed to start A high performance web server an
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has failed.
--
-- The result is failed.
Jan 17 23:33:18 web systemd[1]: nginx.service: Unit entered failed state.
Jan 17 23:33:18 web systemd[1]: nginx.service: Failed with result 'exit-code'.
Jan 17 23:33:19 web sshd[11758]: Failed password for root from 221.208.195.106 p
Jan 17 23:33:21 web sshd[11758]: Failed password for root from 221.208.195.106 p
Jan 17 23:33:21 web sshd[11758]: Connection reset by 221.208.195.106 port 51628
Jan 17 23:33:21 web sshd[11758]: PAM 4 more authentication failures; logname= ui
Jan 17 23:33:21 web sshd[11758]: PAM service(sshd) ignoring max retries; 5 > 3
Jan 17 23:33:25 web sshd[11976]: pam_unix(sshd:auth): authentication failure; lo
Jan 17 23:33:27 web sshd[11976]: Failed password for root from 221.208.195.106 p
Jan 17 23:33:29 web sshd[11976]: Failed password for root from 221.208.195.106 p
lines 1079-1125/1125 (END)
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!
I had the same error but mine was i forgot to put the semi colon after the proxy_pass line
The lines below are where we need to look:
Jan 17 23:33:18 web nginx[11971]: nginx: [emerg] "location" directive is not all
Jan 17 23:33:18 web nginx[11971]: nginx: configuration file /etc/nginx/nginx.con
Although it looks like the output that you copied is missing a few bits from the right side, that’s enough to give details on what may be wrong.
Essentially, the above is telling me that there’s an issue with this file:
/etc/nginx/nginx.conf
… or one of the server blocks that you’re including in to it. So we need to check that file and your server block configuration (the blocks starting with server { for your sites).
If you can post both of those, I can take a look at things for you.
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.