Configuring Nginx to forward PHP requests

August 14, 2013 3.9k views
I'm getting this error when restarting nginx: "fastcgi_pass" directive is not allowed here in /etc/nginx/sites-enabled/wordpress:65 Any help would be appreciated. I'm trying to use Nginx and install wordpress instead of the usual. Is that wise?
3 Answers
Please pastebin the contents of /etc/nginx/sites-enabled/wordpress --
Hi Kamal, I managed to solve the problem but since I've done a fresh install of LEMP and would like to know with the virtual host file, can I just copy and paste the whole of the update after getting rid of what's in there to start with, if you get my lingo.:)
I don't understand -- is it working now that you have done a fresh LEMP install?
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!