Welcome! Log In Create A New Profile

Advanced

Re: Help! 503 Service Temporarily Unavailable when trying to reverse-proxy wordpress

Francis Daly
June 26, 2017 07:18PM
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: 92.222.75.87". That's really weird... Could that be the cause
> of the problem?

Yes.

> 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?

Do

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://92.222.75.87/

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,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Help! 503 Service Temporarily Unavailable when trying to reverse-proxy wordpress

Fabrice Triboix June 26, 2017 07:40AM

Re: Help! 503 Service Temporarily Unavailable when trying to reverse-proxy wordpress

Francis Daly June 26, 2017 12:28PM

Re: Help! 503 Service Temporarily Unavailable when trying to reverse-proxy wordpress

Fabrice Triboix June 26, 2017 01:26PM

Re: Help! 503 Service Temporarily Unavailable when trying to reverse-proxy wordpress

Francis Daly June 26, 2017 07:18PM

Re: Help! 503 Service Temporarily Unavailable when trying to reverse-proxy wordpress

Fabrice Triboix June 27, 2017 04:52AM

Re: Help! 503 Service Temporarily Unavailable when trying to reverse-proxy wordpress

Fabrice Triboix June 27, 2017 10:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready