From c8a827a930241c6f1cf94afcc543d037f4061f69 Mon Sep 17 00:00:00 2001 From: VC Date: Tue, 23 Jul 2024 10:45:24 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F:=20improve=20redirection=20f?= =?UTF-8?q?or=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/nginx/templates/vhosts/www.nintendojofr.com.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/nginx/templates/vhosts/www.nintendojofr.com.conf.j2 b/roles/nginx/templates/vhosts/www.nintendojofr.com.conf.j2 index 46f090f..1f3df7f 100644 --- a/roles/nginx/templates/vhosts/www.nintendojofr.com.conf.j2 +++ b/roles/nginx/templates/vhosts/www.nintendojofr.com.conf.j2 @@ -13,6 +13,10 @@ server { root /srv/http/www.nintendojofr.com/; index index.html index.htm index.php; + location ~ ^/images/(.*)$ { + return 301 https://www.nintendojo.fr/images/$1; + } + location / { return 301 https://www.nintendojo.fr; }