By Evan Mattson
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.
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!
I know I am late to the party, but for those who find this through google: Try launching the url from a different browser before making those changes listed above ;)
Explanation: If you set a bogus redirect rule in a file with a permanent switch, most browsers will remember this rule and cache it. For example chrome caches it in some internal file that can not be cleared by removing cookies and site data - you have to actually clear full browser history and all browsing data for the last x hours.
I hope this doesn’t bump this old thread but THANK YOU. I’ve done this quite a few times and could not figure out why it wasn’t working. I thought my version of Nginx had gone mad. Nope, I just forgot how to symlink…
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.