-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimengyu.top.conf
54 lines (40 loc) · 1010 Bytes
/
imengyu.top.conf
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
server{
listen 80;
listen [::]:80;
server_name www.imengyu.top imengyu.top;
root /home/www/imengyu;
location / {
index index.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.html#/$1 last;
break;
}
}
location ~* \.(gif|jpg|jpeg|bmp|png|ico|txt|js|css)$ {
expires 30d;
}
error_page 404 /index.html#/NotFound;
}
server{
listen 443 ssl;
listen [::]:443 ssl;
server_name www.imengyu.top imengyu.top;
root /home/www/imengyu;
ssl_certificate /home/cert/4590635_www.imengyu.top.pem;
ssl_certificate_key /home/cert/4590635_www.imengyu.top.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
index index.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.html#/$1 last;
break;
}
}
location ~* \.(gif|jpg|jpeg|bmp|png|ico|txt|js|css)$ {
expires 30d;
}
error_page 404 /index.html#/NotFound;
}