Thanks, I've got my nginx proxy setup now. However that article doesn't really go into enough depth; I had several redirect issues with wordpress. I found
this far more useful.
For anyone else finding this post, after a similar solution, I have setup my nginx to forward everything on to apache, in nginx.conf. This way if I add more sites to apache, they should 'just work'.
This is what my my default server settings in nginx.conf looks like:
Code:
server {
# the IP of my Linode box
# if you use this, change it to yours
listen 192.168.1.67:80;
location / {
proxy_pass http://127.0.0.1; # redirect to apache
proxy_redirect off;
proxy_buffering off;
# needed to prevent some apache redirects to localhost
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}