From ba92115d38aedc47b2e79bd1eeb4da1d7dd29b1b Mon Sep 17 00:00:00 2001 From: Melchisedech Date: Sun, 13 Mar 2022 00:20:35 +0100 Subject: [PATCH] Exclude static files from URL rewriting --- conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7a92296..0299878 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,6 +7,11 @@ location __PATH__/ { if ($args !~* lang=__LANGUAGE__){ rewrite ^(.*)$ https://__DOMAIN____PATH_URL__/#/?lang=__LANGUAGE__ last; } + +location __PATH__/static/ { + + alias __FINALPATH__/static/ ; + } ### Example PHP configuration (remove it if not used) # index index.php;