com
22 lines
675 Bytes
| 1 | server { |
| 2 | listen 443 ssl; |
| 3 | server_name setoelkahfi.com; |
| 4 | root /var/www/setoelkahfi.com; |
| 5 | index index.html; |
| 6 | |
| 7 | ssl_certificate_key /etc/letsencrypt/live/setoelkahfi.com-0001/privkey.pem; # managed by Certbot |
| 8 | ssl_certificate /etc/letsencrypt/live/setoelkahfi.com-0001/fullchain.pem; # managed by Certbot |
| 9 | |
| 10 | location / { |
| 11 | try_files $uri $uri/ =404; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | server { |
| 16 | listen 80; |
| 17 | listen 443 ssl; |
| 18 | ssl_certificate /etc/letsencrypt/live/setoelkahfi.com-0001/fullchain.pem; |
| 19 | ssl_certificate_key /etc/letsencrypt/live/setoelkahfi.com-0001/privkey.pem; |
| 20 | server_name www.setoelkahfi.com; |
| 21 | return 301 https://setoelkahfi.com$request_uri; |
| 22 | } |