Hi all!
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:
fastcgi_split_path_info ^(.+\.php)(/.+)$;
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.
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!
Please post the complete configuration content. There might be a syntax error in a previous line [line above] - Maybe a missing semi-colon(;)
@aled.skyrail @valley_webuzo
I actually ended up starting from scratch with a new droplet. This time it worked without too much fiddling. So, I’m up and running.
Thanks for replying! Happy that there is such a responsive community here on DO.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.