redirects

master
Matthew 2024-12-20 17:51:11 -05:00
parent 13ab525ad5
commit b9941e4130
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,17 @@
server { server {
listen 443 ssl http2 default_server; listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server; listen [::]:443 ssl http2 default_server;
server_name libraryofcode.org;
ssl_certificate /etc/ssl/private/ev.chain.crt;
ssl_certificate_key /etc/ssl/private/ev.key.pem;
return 301 https://www.libraryofcode.org$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.libraryofcode.org; server_name www.libraryofcode.org;
ssl_certificate /etc/ssl/private/ev.chain.crt; ssl_certificate /etc/ssl/private/ev.chain.crt;