41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name zyplin.online www.zyplin.online;
|
||
|
|
return 301 https://www.zyplin.online$request_uri;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
server_name zyplin.online;
|
||
|
|
|
||
|
|
ssl_certificate /data/tengine/certificate/www.zyplin.online.crt;
|
||
|
|
ssl_certificate_key /data/tengine/certificate/www.zyplin.online.key;
|
||
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||
|
|
|
||
|
|
return 301 https://www.zyplin.online$request_uri;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
server_name www.zyplin.online;
|
||
|
|
|
||
|
|
ssl_certificate /data/tengine/certificate/www.zyplin.online.crt;
|
||
|
|
ssl_certificate_key /data/tengine/certificate/www.zyplin.online.key;
|
||
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||
|
|
|
||
|
|
access_log /data/tengine/logs/www.zyplin.online.log;
|
||
|
|
error_log /data/tengine/logs/www.zyplin.online.log;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
root /data/tengine/html/zyplin.online/;
|
||
|
|
index index.html index.htm;
|
||
|
|
try_files $uri $uri/ /index.html;
|
||
|
|
}
|
||
|
|
error_page 500 502 503 504 /50x.html;
|
||
|
|
location = /50x.html {
|
||
|
|
root html;
|
||
|
|
}
|
||
|
|
}
|