From 337230a9202464bdfdd5dd6466074b07cf438052 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 5 Sep 2024 19:19:23 +0000 Subject: [PATCH] redirect per statuto (#200) fixes #196 Reviewed-on: https://git.libreschool.org/BgLUG/bglug.it/pulls/200 Co-authored-by: paspo Co-committed-by: paspo --- docker/rootfs/etc/nginx/http.d/default.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/rootfs/etc/nginx/http.d/default.conf b/docker/rootfs/etc/nginx/http.d/default.conf index b772039..7961041 100644 --- a/docker/rootfs/etc/nginx/http.d/default.conf +++ b/docker/rootfs/etc/nginx/http.d/default.conf @@ -12,6 +12,10 @@ server { rewrite ^/feed/.*$ /it/index.xml last; } + location ~ ^/wp\-content/uploads/2008/02/Statuto\.pdf$ { + return 301 https://bglug.it/it/chi-siamo/Statuto.pdf; + } + location ~ ^/it/.* { error_page 404 /it/404.html; }