From 6232103e600d298593a22bcbbc0c79bc080b99c5 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Wed, 24 Apr 2024 07:09:08 +0200 Subject: [PATCH] quickfix: nginx: have nginx serve the fallback index.html with a 200 instead of a 404 (#1742) Nginx serves index.html for all pages, but with a 404. This changes it to instead return a 200. --- frontend/frontend.conf.template | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/frontend.conf.template b/frontend/frontend.conf.template index d3f4829b..d0cf5697 100644 --- a/frontend/frontend.conf.template +++ b/frontend/frontend.conf.template @@ -34,12 +34,10 @@ server { root /usr/share/nginx/html; } - # fallback to index for any page - error_page 404 /index.html; - location / { root /usr/share/nginx/html; index index.html index.htm; + try_files $uri /index.html; } # serve replay service worker, RWP_BASE_URL set in Dockerfile