From 12b209a5a4f5cee0546e4360908272b153628fb7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Fri, 19 Jan 2018 08:08:46 +0100 Subject: [PATCH] Fix nginx alias_transveral --- conf/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 61d60d3..25c4237 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -12,25 +12,25 @@ location __PATH__ { include conf.d/yunohost_panel.conf.inc; } -location __PATH__/favicon.ico { +location ^__PATH__/favicon.ico$ { # DATA_DIR/static/favicon.ico alias __FINALPATH__/data/static/favicon.ico; expires 30d; } -location __PATH__/robots.txt { +location ^__PATH__/robots.txt$ { # DATA_DIR/static/robots.txt alias __FINALPATH__/data/static/robots.txt; expires 30d; } -location __PATH__/static { +location __PATH__/static/ { # DATA_DIR/static/ alias __FINALPATH__/data/static/; expires 30d; } -location __PATH__/media { +location __PATH__/media/ { # DATA_DIR/media/ alias __FINALPATH__/data/media/; expires 30d;