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.
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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!