diff --git a/front/nginx.conf b/front/nginx.conf index 90ad9b2d50..711f269a31 100644 --- a/front/nginx.conf +++ b/front/nginx.conf @@ -6,8 +6,11 @@ server { autoindex off; root /usr/share/nginx/html; - error_page 404 =302 /; + error_page 404 = @notfound; + @notfound { + return 302 /; + } location ~ ^(/[a-zA-Z0-9_-]+)?/(?api(/.*)?)$ { resolver 127.0.0.11; proxy_pass http://api:3000/$path$is_args$args;