blob: b00ec9cc28727ba980dfcb072c49b6fb5a752c57 (
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
|
server {
server_name blog.ilvokhin.com www.blog.ilvokhin.com;
root /srv/http/blog.ilvokhin.com;
index index.html;
location / {
try_files $uri $uri/ = 404;
}
listen [::]:443 ssl;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/blog.ilvokhin.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/blog.ilvokhin.com/privkey.pem;
}
server {
if ($host = www.blog.ilvokhin.com) {
return 301 https://$host$request_uri;
}
if ($host = blog.ilvokhin.com) {
return 301 https://$host$request_uri;
}
server_name blog.ilvokhin.com www.blog.ilvokhin.com;
listen 80;
listen [::]:80;
return 404;
}
|