Answer the question
In order to leave comments, you need to log in
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
Separate ssl resources and non-ssl resources to different ip addresseslisten IP:433
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 questionAsk a Question
731 491 924 answers to any question