I'm having issues setting up my FreeBSD server with nginx. I always had Apache and recently changed to nginx. I followed this tutorial to get 1 Wordpress website up- en running: http://forums.freebsd.org/showthread.php?t=30268 (that worked like a charm).
The nginx.conf (which worked) is:
http://pastebin.com/kJevGHjj
Now I need to have more websites (multiple Wordpress sites and Prestashop). So I splitted up the nginx.conf and created sites-available/sites-enabled (and the symlink).
This is my nginx.conf:
http://pastebin.com/HJ80bPiX
And for Prestashop:
http://pastebin.com/2RxjajVm
But I'm having issues all the time, tried to look for other examples in nginx, treid to check all the rules but I'm having or a blank page (Prestashop) or a working Wordpress with a bricked layout (no background, just the text in a strange layout).
Yes, it's listening @ unix:/var/run/php-fpm.sock.
What could this be? I'm no PHP hero (nor nginx). Rewrite rules? Wrong config?
Thanks
The nginx.conf (which worked) is:
http://pastebin.com/kJevGHjj
Now I need to have more websites (multiple Wordpress sites and Prestashop). So I splitted up the nginx.conf and created sites-available/sites-enabled (and the symlink).
This is my nginx.conf:
http://pastebin.com/HJ80bPiX
And for Prestashop:
http://pastebin.com/2RxjajVm
But I'm having issues all the time, tried to look for other examples in nginx, treid to check all the rules but I'm having or a blank page (Prestashop) or a working Wordpress with a bricked layout (no background, just the text in a strange layout).
Yes, it's listening @ unix:/var/run/php-fpm.sock.
What could this be? I'm no PHP hero (nor nginx). Rewrite rules? Wrong config?
Thanks