I created a server block (Nginx), I did the whole process! Restarted the Nginx and then not returned! The retonor is: Start: nginx [Failed].
Searching I found the error! Accidentally didn’t put the semicolon in charge (/etc/nginx/sites-available/exemplo.com). To try to solve the problem I put the semicolon (;) but even then Nginx does not start! As soon as I deleted the server block that I created, however, the same does not start anymore.
Follow the error appears in the log file:
2017/01/18 13:20:59 [emerg] 19304#19304: unexpected end of file, expecting “;” or “}” in /etc/nginx/sites-enabled/1:9 2017/01/18 13:51:55 [emerg] 19406#19406: unexpected end of file, expecting “;” or “}” in /etc/nginx/sites-enabled/1:9
Can someone help me? Remember, I’m new to Nginx.
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.