Nginx restart fails during LEMP setup, help?
When I I try to restart nginx, after editing sudo nano /etc/nginx/sites-available/default, I get this fail response:
Restarting nginx nginx [fail]
Checking the error.log I get this:
2014/09/22 14:50:48 [emerg] 5568#0: invalid variable name in /etc/nginx/sites-enabled/default:56
I assume this means that the issue is line 56 on the “default” file.
If that’s the case, then the issue is supposedly:
Which, according to this tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04), is exactly as it should be.
So what am I doing wrong and how can I fix it?
Thanks in advance.
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.