Как пример:
server {
server_name serer.name www.server.name;
listen 80;
listen 443 ssl http2;
if ($host != "server.name") {
rewrite ^ https://server.name$request_uri? permanent;
}_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru