Answer the question
In order to leave comments, you need to log in
What is the best way to set up redirects for Wordpress MU + subdomain + mapping + nginx + ssl?
there are two servers
in nginx.conf :
listen 443 ssl deferred spdy;
server_name dom.org;
listen 80 default_server;
server_name dom1.com dom.ru;
server {
server_name dom.org www.dom.org;
return 301 https://dom.org$request_uri;
}
Answer the question
In order to leave comments, you need to log in
If the user visits https://dom.ru/ himself , he will see a warning anyway.
Pay 50 bucks in StartSSL for two years (in other places, a certificate for 4 domains will be more expensive) and make yourself a certificate for all the domains that you have.
The user comes to port 443, asks for a certificate, establishes an encrypted connection, then passes the Host header and does all the checks for the certificate, in short. In the case of SNI, everything is a little different, but the essence is the same - the user has already come to port 443 for the "wrong" site and he needs to show something. Including a certificate to give at least some.
Too lazy to go into science (how and what is signed in what order), but the essence should be clear to you)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question