Welcome! Log In Create A New Profile

Advanced

Re: NGINX not passing header to proxy

Francis Daly
January 02, 2019 03:18PM
On Wed, Jan 02, 2019 at 11:57:51AM -0500, Sesshomurai wrote:

Hi there,

> Yeah, there might be more going on here that meets the eye. But here are
> the curl commands that are producing different results. I am looking into
> the upstream server as well, but the difference would imply something about
> NGINX is not the same as running curl from command line.

Correct - nginx and curl make different requests (by default).

If you use "curl -v", it should show the actual request that it makes. If
you enable the debug log in nginx, you might be able to read from it
what request nginx makes.

(Ideally: enable fuller logging on the upstream server and compare the
requests there -- but it sounds like you d not directly control the
upstream server.)

Some differences between nginx and curl which may be important are:

nginx will make a http/1.0 request; curl will make a http/1.1 request.

nginx will not include SNI in the http connection; curl will include it.

If you can easily test things, perhaps try making curl request of
the upstream, using http/1.0 and/or SSLv3 (or some https option that
omits SNI).

If you can find a curl request that fails in the same way that the
nginx request fails, that may point at the nginx config changes that
will allow the nginx request succeed.

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

NGINX not passing header to proxy

Sesshomurai December 31, 2018 10:01AM

Re: NGINX not passing header to proxy

Francis Daly December 31, 2018 12:00PM

Re: NGINX not passing header to proxy

Sesshomurai January 01, 2019 11:48AM

Re: NGINX not passing header to proxy

Sesshomurai January 01, 2019 11:58AM

Re: NGINX not passing header to proxy

Sesshomurai January 01, 2019 12:32PM

Re: NGINX not passing header to proxy

Francis Daly January 02, 2019 07:50AM

Re: NGINX not passing header to proxy

Sesshomurai January 02, 2019 11:57AM

Re: NGINX not passing header to proxy

Sesshomurai January 02, 2019 12:17PM

Re: NGINX not passing header to proxy

Francis Daly January 02, 2019 03:18PM

Re: NGINX not passing header to proxy

Sesshomurai January 03, 2019 06:17PM

Re: NGINX not passing header to proxy

Francis Daly January 04, 2019 06:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
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