map $ssl_preread_server_name $name { watch.mommys.plumbing watch_mommys_plumbing; } upstream watch_mommys_plumbing { server 172.31.206.1:443; } server { listen 443; proxy_pass $name; ssl_preread on; }