From fe753d3b365227f22a8ea7be2714a2e9b626cfe9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Fri, 30 Aug 2019 22:20:01 +0200 Subject: [PATCH] simplify nginx --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 329ccf7..61637a1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,12 +1,12 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; # https://github.com/WeblateOrg/weblate/blob/master/examples/weblate.nginx.conf -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;