I’m trying to get my server setup to handle multiple wordpress sites on nginx.
I followed the different tutorials in the initial server setup, lemp installation etc.
Everything was working ok with the exception of permalinks not working at all. I couldn’t navigate to any page on the front end (away from the domain root).
So since then I have tried a lot of different things messing with nginx.conf and other files (from instructions in the wp codex), but none of that helped, so since then I’ve tried to go back to a clean slate with nginx and php-fpm.
I uninstalled them both, purged, autocleaned, and reinstalled them.
After this, I’ve gone through the basics again and nginx is running, but something is still very wrong. When I go to my server IP, I get the “It works!” index.html from /var/www/ but my configuration should be pointing it to a different document root.
my nginx.conf looks like this: http://pastebin.com/cthXjPyY
my only file in sites-enabled looks like this: http://pastebin.com/mu3Mi9zq
From what I understand, it should be picking up my site’s configuration in sites-enabled rather than loading this file.
I’m stumped, please help.
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.