server {
listen 80;
listen 443 ssl;
server_name domain.name www.domain.name;
ssl_certificate /soft/nginx-1.22.0/certificate.crt;
ssl_certificate_key /soft/nginx-1.22.0/private.key;
location / {
root html;
try_files $uri $uri/ /index.html;
}
}