From 13ec9006a99818c82bdd0cf3e1356a0834b98e3a Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 1 Feb 2019 09:37:20 +0100 Subject: [PATCH] Nginx redirect to main page on 404 errors --- front/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/front/nginx.conf b/front/nginx.conf index c8f6cea3a..90ad9b2d5 100644 --- a/front/nginx.conf +++ b/front/nginx.conf @@ -6,6 +6,7 @@ server { autoindex off; root /usr/share/nginx/html; + error_page 404 =302 /; location ~ ^(/[a-zA-Z0-9_-]+)?/(?api(/.*)?)$ { resolver 127.0.0.11;