WordPress redirecting to Apache port
I've finally got my server up and running using Nginx as the frontend listening on port 80 and Apache listening on 8080 but there's no problem there, the actual problem resides with WordPress...
The issue is every time I login it redirects to: http://www.site.com:8080/
Which breaks a few things on WordPress for some reason, like I can't insert images to the posts as I get Permission Denied from Firebug so without :8080 being added on to the URL everything works correctly.
So does anyone know a fix or a file I ne开发者_Python百科ed to modify in WordPress or whatever - I would greatly appreciate it!
Thanks in advance!
You're after this document:
http://wordpress.org/support/topic/wordpress-behind-reverse-proxy
and specificallly
ProxyPreserveHost On
assuming your config is sane. If nginx is a bit messy then a
$_SERVER['REMOTE_ADDR'] = "...any host..";
to the top of wp-config.php will wack it forcefully into any shape. Bit brute force though.
精彩评论