server {
listen 443 ssl;
server_name server1.example.com;
ssl_certificate server1.crt;
ssl_certificate_key server1.key;
listen / {
proxy_pass http://...;
}
}
server {
listen 443 ssl;
server_name server2.example.com;
ssl_certificate server2.crt;
ssl_certificate_key server2.key;
listen / {
proxy_pass http://...;
}
}