Welcome! Log In Create A New Profile

Advanced

Re: stream server name question

Francis Daly
August 30, 2019 03:50PM
On Mon, Aug 26, 2019 at 08:55:31PM -0400, Louis Garcia wrote:

Hi there,

> I am able to use $ssl_preread_server_name to get the server name. This is
> with https requests. Is there a corresponding embedded variable for http
> requests?

No.

"stream" does not know about http or https.

"stream" knows about tcp and ssl (and udp).

$ssl_preread_server_name is the ssl name, not the https name -- the
difference might seem subtle, but it is important here.

If you want to proxy based on https name (or http name), use "http" not
"stream".

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

stream server name question

Louis Garcia August 26, 2019 08:56PM

Re: stream server name question

Phillip Odam August 26, 2019 09:08PM

Re: stream server name question

Louis Garcia August 26, 2019 10:06PM

Re: stream server name question

Phillip Odam August 26, 2019 10:16PM

Re: stream server name question

Francis Daly August 30, 2019 03:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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