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;