Link Blog

9th January 2008

Tip: Preserve SERVER_NAME and HTTP_HOST

Script which rewrites $_SERVER["REMOTE_ADDR"] etc to use the HTTP_X_FORWARDED_HOST handed over by nginx and other proxies. Sorts out various odd issues with wordpress.

Tags: nginx, php, wordpress

James Turnbull elsewhere: LinkedIn, Facebook, Django People

James Turnbull is a web developer from Edinburgh and living in Oxford. This website is a link-dump of things he found online.

James is New Media Director at digital healthcare agency Incuna and developed the popular Google Earth "things-to-see" website, Google Sightseeing. You can buy the spin-off book Not in the Guide Book at all good bookshops.