Question

Nginx stopped working

Posted July 26, 2021 77 views
Ubuntu 20.04

I stopped the nginx using command then tried to start again. but it shows error. Can anyone please help me ?

https://prnt.sc/1fyd417

also my website domain is showing nginx when nginx is active. But the website is not showing. I tried to install SSL using article.

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.

×
Submit an Answer
1 answer

Hello,

There is a syntax error on line 4 in the /etc/nginx/sites-enabled/retrovgames.com file. You need to open the file with your favorite text editors like nano or vim and update the line to fix the syntax or remove the line in case that it is not needed.

After that, you could restart Nginx again.

I always recommend testing your Nginx config syntax before restarting Nginx, you can do this with:

sudo nginx -t

And only if you get Syntax OK, then you could restart Nginx. That way you minimize the downtime.

Regards,
Bobby