diff --git a/setup/start/nginx/appconfig.ejs b/setup/start/nginx/appconfig.ejs index f4f99c457..12c129495 100644 --- a/setup/start/nginx/appconfig.ejs +++ b/setup/start/nginx/appconfig.ejs @@ -57,6 +57,13 @@ server { client_max_body_size 0; <% if ( endpoint === 'admin' ) { %> + error_page 404 = @fallback; + location @fallback { + internal; + root /home/yellowtent/box/webadmin/dist; + rewrite ^/$ /error.html?errorCode=4 break; + } + location /api/ { proxy_pass http://127.0.0.1:3000; client_max_body_size 1m; diff --git a/webadmin/src/error.html b/webadmin/src/error.html index 46fed18e9..054e284c8 100644 --- a/webadmin/src/error.html +++ b/webadmin/src/error.html @@ -90,6 +90,10 @@ Please use the setup link you received via mail. +
+

Nothing to be found here

+
+