Welcome! Log In Create A New Profile

Advanced

Re: sni hostname and request Host header mismatch

Francis Daly
October 11, 2018 03:08AM
On Wed, Oct 10, 2018 at 05:11:40PM -0700, Frank Liu wrote:

Hi there,

> http://hg.nginx.org/nginx/rev/4fbef397c753 indicates the check is only done
> for the 2-way SSL virtual host.
> Has everything been added (maybe through a directive) for 1-way SSL since
> then?

$ssl_server_name is the name from SNI.

$http_host is the Host: header.

$host is the host from the request (which usually should be absent),
or the host from the Host: header (which usually should be present),
or the (first) server_name of the matched server.

I think that there is not an extra directive; but you can manipulate
and compare those variables as is appropriate for your situation.

Specifically: in an SNI-only server, if $host is not the same as
$ssl_server_name, something funny is going on.

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

sni hostname and request Host header mismatch

Frank Liu October 10, 2018 12:00PM

Re: sni hostname and request Host header mismatch

itpp2012 October 10, 2018 01:32PM

Re: sni hostname and request Host header mismatch

Frank Liu October 10, 2018 08:12PM

Re: sni hostname and request Host header mismatch

Francis Daly October 11, 2018 03:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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