SNI host with non SSL wrong cert

Hello,

I have nginx installed with multiple domainnames and multiple ssl-hosts
use SNI.
Now I add an other vhost with non-ssl server entry like example.com.
when I try to use https://example.com/ I get a cert from an other vhost.

I found this “solution” to “catch all”
|
|

|server { listen 443 ssl; server_name _; ssl on; ssl_certificate
/path/to/certificate.crt; ssl_certificate_key /path/to/certificate.key;
return 444; }|

|But I need a valid cert to get no error in browsser.
Also when I try to redirect it to non-ssl area.

Is there a solution without need a cert?

somethink like

||server {
listen 443;
server_name ssl.example.com;
break;
}|

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs