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 need to modify in WordPress or whatever - I would greatly appreciate it!

Thanks in advance!

Answers


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.


Need Your Help

Resize tableview's cell image in cellForRowAtIndexPath method

objective-c uiimageview cell tableview

I have a tableview, each cell with a image, title, and subtitle. Each cell has a different image and I can't figure out how to make the right side of them all line up with each other. In other words,

Using the 'jsonmap' property of jqGrid colModel with untyped JSON

javascript asp.net wcf json jqgrid

My AJAX-enabled WCF service returns JSON using this contract,

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.