From 3f576168034c605f90c23860a82df74c79df2137 Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Fri, 6 May 2022 18:01:27 +0200 Subject: [PATCH] fix: case-insensitive matching --- bench/config/templates/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/config/templates/nginx.conf b/bench/config/templates/nginx.conf index 77d865a2..2ea1e3e5 100644 --- a/bench/config/templates/nginx.conf +++ b/bench/config/templates/nginx.conf @@ -80,7 +80,7 @@ server { rewrite ^(.+)/index\.html$ $1 permanent; rewrite ^(.+)\.html$ $1 permanent; - location ~ ^/files/.*.(htm|html|svg|xml) { + location ~* ^/files/.*.(htm|html|svg|xml) { add_header Content-disposition "attachment"; try_files /{{ site_name }}/public/$uri @webserver; }