From 8e2acb733ccd939437a1283fa3589749bcf1ee18 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 5 Sep 2021 14:13:54 -0700 Subject: [PATCH] Use non-www domain canonically --- nginx/production | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx/production b/nginx/production index 54c84af45..76f18f32f 100644 --- a/nginx/production +++ b/nginx/production @@ -24,6 +24,10 @@ server { # listen 443 ssl http2; # # server_name your-domain.com; + +# if ($host != "you-domain.com") { +# return 301 $scheme://your-domain.com$request_uri; +# } # # # SSL code # ssl_certificate /etc/nginx/ssl/live/your-domain.com/fullchain.pem;