server {
listen *:80;
server_name домен;
...
}
server {
listen 443 ssl;
server_name домен;
ssl_certificate /path/to/pki/домен1.crt;
ssl_certificate_key /path/to/pki/домен1.key;
ssl_protocols TLSv1.3;
...
}
server {
listen *:80;
server_name домен2;
...
}
server {
listen 443 ssl;
server_name домен2;
ssl_certificate /path/to/pki/домен2.crt;
ssl_certificate_key /path/to/pki/домен2.key;
ssl_protocols TLSv1.3;
...
}