<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Как пример:<br><br>server {<br></div><div> server_name serer.name www.server.name;<br></div><div> listen 80;<br></div><div> listen 443 ssl http2;<br></div><div><br></div><div> if ($host != "server.name") {<br></div><div> rewrite ^ https://server.name$request_uri? permanent;<br></div><div> }<br></div><div><br></div></div><br></body></html>