Welcome! Log In Create A New Profile

Advanced

Re: how do I run multiple https web sites on a single IP address

Francis Daly
January 02, 2018 05:56PM
On Tue, Jan 02, 2018 at 11:27:07AM -0500, Kurogane wrote:

Hi there,

> >http://nginx.org/en/docs/http/configuring_https_servers.html
>
> I'm not sure what is your point here? nginx have built SNI a decade ago even
> CentOS have nginx updated version.
>
> If my nginx not have enabled or not SNI support then why works with www?

Ah, sorry - I had missed that https://www.domain.com, https://domain.com,
and https://www.domain2.com all worked ok on IPv4. It is only
https://domain2.com that presents an unwanted certificate.

(And it presents the certificate for domain.com, even though
www.domain.com is configured as the default_server.)

Do you have four separate ssl certificate files, each of which is valid
for a single server name?

Or do you have one ssl certificate file which is valid for multiple
server names?

> Can you enlighten me what i do wrong or what is the "special" configuration
> to use SNI with shared IPv4 address.

One guess - is there any chance that the contents of the ssl_certificate
file that applies in the domain2.com server{} block is actually the
domain.com certificate? (Probably not, because the IPv6 connection should
be using the same ssl_certificate, and no error was reported there.)

Other than that, I don't know. Can you provide a complete config and
test commands that someone else can use to recreate the problem?

Or, to rule out any strange IPv4/IPv6 interaction -- do you see the same
behaviour when you remove all of the IPv6 config?

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

Multiple https website with IPv6

Kurogane January 02, 2018 01:40AM

Re: Multiple https website with IPv6

Francis Daly January 02, 2018 06:04AM

Re: how do I run multiple https web sites on a single IP address

Kurogane January 02, 2018 11:27AM

Re: how do I run multiple https web sites on a single IP address

Valentin V. Bartenev January 02, 2018 11:36AM

Re: how do I run multiple https web sites on a single IP address

Francis Daly January 02, 2018 05:56PM

Re: how do I run multiple https web sites on a single IP address

Kurogane January 03, 2018 02:23PM

Re: how do I run multiple https web sites on a single IP address

Francis Daly January 03, 2018 05:40PM

Re: how do I run multiple https web sites on a single IP address

Kurogane January 04, 2018 07:19PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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