server { listen 80; server_name localhost; location / { root /usr/share/nginx/html; index index.html; } } server { listen 443 ssl; server_name localhost; ssl_certificate /etc/nginx/ssl/commit-kfir.crt; ssl_certificate_key /etc/nginx/ssl/commit-kfir.key; location / { root /usr/share/nginx/html; index index.html; } }