Redirect to ssl https
This commit is contained in:
parent
1b4a78c3c9
commit
37cccaadda
@ -33,18 +33,18 @@ server {
|
||||
# include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/13.owlephant.icu/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/13.owlephant.icu/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
if ($host = 13dev.quaff.top) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
server_name 13dev.quaff.top;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
listen [::]:80;
|
||||
server_name 13.owlephant.icu;
|
||||
return 301 https://13.owlephant.icu$request_uri;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user