Welcome! Log In Create A New Profile

Advanced

Re: Nginx reverse proxy regex help

Francis Daly
September 20, 2021 01:12PM
On Sun, Sep 19, 2021 at 08:44:18AM -0400, blason wrote:

Hi there,

> Well actually while doing a curl request site is being moved and here is I
> am getting
>
>
> curl -vk https://xx.xx.xx/TestPage/

I'm not sure if this xx.xx.xx is a hostname or an IP address; or how it
compares to any of the previous xx.ss strings.

"-k" is "accept the server certificate, no matter what"; that's a
reasonable test here, if your nginx is doing the same thing.

"-v" output would normally show the IP address that is connected to;
and the http response headers, which for a 301 redirect would include a
"Location:" header that may or may not match something that nginx expects
to modify before it returns it to the client.

All of that information should help you see where things start to go wrong.


It looks like in your follow-up mail, you have found a configuration
that works, by making sure that the back-end is using the site that you
want it to be using for this request from the nginx server.

Good stuff!

Cheers,

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

Nginx reverse proxy regex help

blason September 17, 2021 01:34AM

Re: Nginx reverse proxy regex help

Francis Daly September 18, 2021 03:52AM

Re: Nginx reverse proxy regex help

blason September 18, 2021 10:53PM

Re: Nginx reverse proxy regex help

Francis Daly September 19, 2021 03:16AM

Re: Nginx reverse proxy regex help

blason September 19, 2021 08:25AM

Re: Nginx reverse proxy regex help

blason September 19, 2021 08:44AM

Re: Nginx reverse proxy regex help

blason September 19, 2021 10:24AM

Re: Nginx reverse proxy regex help

Francis Daly September 20, 2021 01:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready