From b39a678e372216f49a95ba476ab1c264e2248bfa Mon Sep 17 00:00:00 2001 From: Andrea Date: Sun, 5 Sep 2021 21:51:38 +0200 Subject: [PATCH] Redirect http to https --- yaaaw.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/yaaaw.conf b/yaaaw.conf index d72d1ab..5f205c6 100644 --- a/yaaaw.conf +++ b/yaaaw.conf @@ -2,6 +2,14 @@ ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; +server { + listen 80; + + server_name yaaaw.it; + + return 301 https://$host$request_uri; +} + server { listen 443 ssl;