blob: f1fafbffb55c2b1a8d9332d86d624de30c03d925 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
server {
server_name ilvokhin.com www.ilvokhin.com;
root /srv/http/ilvokhin.com;
index index.html;
location / {
try_files $uri $uri/ = 404;
}
listen [::]:443 ssl;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/ilvokhin.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ilvokhin.com/privkey.pem;
}
server {
if ($host = www.ilvokhin.com) {
return 301 https://$host$request_uri;
}
if ($host = ilvokhin.com) {
return 301 https://$host$request_uri;
}
server_name ilvokhin.com www.ilvokhin.com;
listen 80;
listen [::]:80;
return 404;
}
|