Add basic 404 page
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -90,6 +90,10 @@
|
||||
Please use the setup link you received via mail.
|
||||
</div>
|
||||
|
||||
<div ng-show="errorCode == 4">
|
||||
<h3> Nothing to be found here </h3>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<span class="text-muted"><a href="mailto: support@cloudron.io">Contact Support</a> - Copyright © <a href="https://cloudron.io" target="_blank">Cloudron</a> 2014-16</span>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user