Error: Site cant be reached. Website refused to connect

November 20, 2017 144 views
Nginx

I was trying to set up my website when i got a message saying

"System update required" when i ssh into my cPanel.

So i used 'sudo system reboot'

Since then, i get the "Site can't be reached" problem.
Ever since then when a friend tried to connect to the server he got an
Error 503 message.

I understand that the 503 message means that the server doesn't have enough CPU or memory to handle traffic. But i don't have any traffic coming to my website at all. Its just a fresh website. Nothing there.

i checked my error logs in /var/log/nginx/
and got these messages:

2017/11/19 22:34:13 [emerg] 1384#1384: "server" directive is not allowed here in /etc/nginx/sites-enabled/default:52

2017/11/19 22:34:13 [emerg] 1396#1396: "server" directive is not allowed here in /etc/nginx/sites-enabled/default:52

2017/11/19 22:34:13 [emerg] 2087#2087: "server" directive is not allowed here in /etc/nginx/sites-enabled/default:52

2017/11/19 22:34:13 [emerg] 1380#1380: "server" directive is not allowed here in /etc/nginx/sites-enabled/default:52

2017/11/19 22:34:13 [emerg] 1375#1375: "server" directive is not allowed here in /etc/nginx/sites-enabled/default:52

Be the first one to answer this question.