From b9941e4130c43e656a3046212e2ed151395c164e Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 20 Dec 2024 17:51:11 -0500 Subject: [PATCH] redirects --- Nginx/Server Blocks/libraryofcode.org.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Nginx/Server Blocks/libraryofcode.org.conf b/Nginx/Server Blocks/libraryofcode.org.conf index 2c7a6cc..4713bef 100644 --- a/Nginx/Server Blocks/libraryofcode.org.conf +++ b/Nginx/Server Blocks/libraryofcode.org.conf @@ -1,6 +1,17 @@ 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; ssl_certificate /etc/ssl/private/ev.chain.crt;