From 946867ff844a967fdecdce544db421428af2d556 Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Tue, 6 Feb 2024 12:03:28 +0100 Subject: [PATCH] NGINX RP: Move homepage from www.viyurz.fr to viyurz.fr --- nginx-rp/reverse-proxy.conf | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/nginx-rp/reverse-proxy.conf b/nginx-rp/reverse-proxy.conf index 9497208..2fb4cb6 100644 --- a/nginx-rp/reverse-proxy.conf +++ b/nginx-rp/reverse-proxy.conf @@ -21,7 +21,7 @@ server { } -# Base domain redirect +# Base domain / Homepage server { listen 443 ssl http2; listen [::]:443 ssl http2; @@ -42,7 +42,7 @@ server { } location / { - return 308 https://www.viyurz.fr$request_uri; + proxy_pass http://localhost:8082; } } @@ -58,19 +58,6 @@ server { } -# Homepage -server { - listen 443 ssl http2; - listen [::]:443 ssl http2; - - server_name www.viyurz.fr; - - location / { - proxy_pass http://localhost:8082; - } -} - - # Element server { listen 443 ssl http2; @@ -106,7 +93,6 @@ server { } - # Nextcloud server { listen 443 ssl http2;