Add basic 404 page

This commit is contained in:
Johannes Zellner
2016-07-27 17:52:54 +02:00
parent 711814cc2f
commit dcdca52dbd
2 changed files with 11 additions and 0 deletions

View File

@@ -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;