From 6402f156ddb995a7628f57597070b50abefa1826 Mon Sep 17 00:00:00 2001 From: Rafi Date: Sat, 4 Mar 2023 14:45:29 +0800 Subject: [PATCH] Add the try_files directive to the nginx configuration --- nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx.conf b/nginx.conf index 5787e97..a6a6b29 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,6 +6,8 @@ server { location / { root /app; index index.html; + + try_files $uri $uri/ /index.html; } location /api/