Help! 503 Service Temporarily Unavailable when trying to reverse-proxy wordpress
ftriboix at falcon-one.com
Tue Jun 27 08:51:03 UTC 2017
You are right, most links in the wordpress html start with
"http://18.104.22.168/..." so that's the problem.
I'll try to get that fixed.
Many thanks for your help!
On 27/06/17 00:16, Francis Daly wrote:
> On Mon, Jun 26, 2017 at 06:24:50PM +0100, Fabrice Triboix wrote:
> Hi there,
>> I looked again at the requests from the browser (chrome), and I can
>> see something peculiar: the requests for "/" and "/favicon.ico" have
>> a header "Host: incise.co"; however the other requests have a header
>> "Host: 22.214.171.124". That's really weird... Could that be the cause
>> of the problem?
>> If yes, how come the browser sends the IP address
>> for the "Host" header, which is after all meant to allow servicing
>> different domains on the same IP address?
> curl -v http://incise.co/
> which sends a http 301, so then do
> curl -v https://incise.co/
> and look at the returned content.
> Whatever server is listening there is returning the html content with
> links to things below https://126.96.36.199/
> Most likely, your wordpress is configured to do that. If you can configure
> your wordpress to start all internal links with "/" instead of "http",
> it will probably Just Work.
> Alternatively, in the nginx config that you did not show, perhaps
> "proxy_set_header Host $http_host;" was not present.
> Good luck with it,
More information about the nginx