When i write command "service nginx restart", web server is still down?

June 30, 2018 456 views
Nginx Ubuntu

The web server is not returning a connection. As a result, the web page is not displaying.

1 comment
  • @GTHell

    We need more information to help you, please post the output of this command to help you

    tail /var/log/nginx/error.log
    
1 Answer

Hello,

You can check the nginx configuration file for any syntax errors by using this command:

nginx -t

Let me know if this returns any errors or if it says Syntax is OK

Alex

Have another answer? Share your knowledge.