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

Kurogane nginx-forum at forum.nginx.org
Wed Jan 3 19:23:32 UTC 2018


>Are you sure that a tool you're using to check supports SNI?

>wbr, Valentin V. Bartenev

What tool you're talking about? this error show in browser.

>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?

I'm not sure why you mean but i have two cert files. Each cert have a valid
common name to use non www and www

>One guess - is there any chance that the contents of the ssl_certificate
f>ile 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.)

domain2.com is just a block only do redirect that all. Is what i put in
initial thread.

server { 
listen 443 ssl http2; 
listen [::3]:443 ssl http2; 
server_name domain2.com; 
return 301 https://www.$server_name$request_uri; 
} 

This is the full config of this block.

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

Same problem with or without IPv6.

I just notice when i disable IPv6 and only access via IPv4 do something
wierd.

When i visit https://domain2.com i got the same error (domain.com
certificate) and chrome or whatever browser say me if i want to continue and
when i click to continue redirect me to www.domain2.com (is what i want to
do and work with domain.com and domain2.com with IPv6). I'm not sure why
first check domain.com and then use domain2.com server block.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277962,277978#msg-277978



More information about the nginx mailing list