From 8d37a812d4c9f7044dd59ac83dbd6609a793afa3 Mon Sep 17 00:00:00 2001 From: Lewis Goddard Date: Mon, 22 Jul 2024 04:41:44 +0100 Subject: [PATCH] Fix "listen ... http2" directive is deprecated warning --- nginx-config/sites-available/bubbly_live.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nginx-config/sites-available/bubbly_live.conf b/nginx-config/sites-available/bubbly_live.conf index a0ca0ca..5061aa8 100644 --- a/nginx-config/sites-available/bubbly_live.conf +++ b/nginx-config/sites-available/bubbly_live.conf @@ -35,8 +35,9 @@ server { #### HTTPS Redirection Block # Redirect https://www.example.com to https://example.com server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; #### Core Configuration @@ -64,8 +65,9 @@ server { #### Main HTTPS Block server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + http2 on; #### Core Configuration