T
T
toster342017-06-22 18:58:47
Nginx
toster34, 2017-06-22 18:58:47

Nginx + ssl + multiple domains without ssl?

Good evening!!
the problem is following on the nginx server, several domains working without ssl, connected a new domain with ssl
, now when accessing all domains via https, they give a domain certificate with ssl, how to deal with this?
how to make domains without a certificate not work via https, there is a solution with a redirect
server {
server_name site-nossl.ru www.site-nossl.ru;
listen 443;
return 301 http://site-nossl.ru$request_uri;
}
but it is not quite correct when visiting the site (for the first time) we still get an erroneous certificate

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2017-06-22
@POS_troi

Separate ssl resources and non-ssl resources to different ip addresses
listen IP:433

B
Boris Korobkov, 2017-06-22
@BorisKorobkov

Why is it necessary to solve the problem right now?
As https://site-nossl.ru did not work before, it does not work now. Unless the error has changed.
If https://site-nossl.ru is not needed - do not pay attention.
If https://site-nossl.ru is needed, get a valid certificate for it and specify it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question