# save file and restart Nginx to enable |=> context http <=| map $scheme:$host $redirect { ~^(https?):www.domain.com "1"; http:domain.com "1"; default "0"; } |=> context server ssl <=| listen 80; if ($redirect) {...