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;