{"id":846520,"date":"2008-08-31T15:22:46","date_gmt":"2008-08-31T15:22:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wordpress-behind-reverse-proxy\/"},"modified":"2016-08-19T02:03:24","modified_gmt":"2016-08-19T02:03:24","slug":"wordpress-behind-reverse-proxy","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wordpress-behind-reverse-proxy\/","title":{"rendered":"WordPress Behind Reverse Proxy?"},"content":{"rendered":"<p>Hi Guys,<\/p>\n<p>I want to run wordpress behind a reverse proxy. Setup will be:<\/p>\n<p>www.example.com:80 (proxy)<br \/>\n&#8211;&gt; accesses localhost:12345 (wordpress).<\/p>\n<p>WordPress automatically redirects to localhost:12345 after the initial setup, this is easily fixed by editing the url\/hostname in the mysql database. However, now it will do redirects to itself in an endless loop. I understand why this happens (wordpress will see the localhost:12345 in the http get request and say &#8220;hey thats not my canonical hostname&#8221;); is there an easy way to stop this? I just want wordpress to hand out pages, and let me worry about hitting the right hostname, I know what I am doing. \ud83d\ude09<\/p>\n<p>Any help appreciated.<\/p>\n<p>best wishes<br \/>\nNils<\/p>\n","protected":false},"template":"","class_list":["post-846520","topic","type-topic","status-closed","hentry","topic-tag-domain","topic-tag-hostname","topic-tag-proxy","topic-tag-redirect","topic-tag-reverse-proxy","topic-tag-url"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/846520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/846520\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=846520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}