mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
add http error pages (#381)
* implement 404 for webserver - this is a quick hack, should be refactored later * add http error pages ... design is more a placebo ;-) * tune errorpages fix some cgi related stuff, now only python is possible executing and reading python file is possilbe, but it cannot receive any data from webui * fix typo * fix another typo
This commit is contained in:
4
assets/webconfig/errorpages/403.html
Normal file
4
assets/webconfig/errorpages/403.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">403 Forbidden</div>
|
||||
<div class="panel-body">{MESSAGE}</div>
|
||||
</div>
|
4
assets/webconfig/errorpages/404.html
Normal file
4
assets/webconfig/errorpages/404.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">404 Page not found</div>
|
||||
<div class="panel-body">{MESSAGE}</div>
|
||||
</div>
|
4
assets/webconfig/errorpages/405.html
Normal file
4
assets/webconfig/errorpages/405.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">405 Method not allowed</div>
|
||||
<div class="panel-body">{MESSAGE}</div>
|
||||
</div>
|
4
assets/webconfig/errorpages/500.html
Normal file
4
assets/webconfig/errorpages/500.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">500 Internal server error</div>
|
||||
<div class="panel-body">{MESSAGE}</div>
|
||||
</div>
|
4
assets/webconfig/errorpages/footer.html
Normal file
4
assets/webconfig/errorpages/footer.html
Normal file
@@ -0,0 +1,4 @@
|
||||
</div> <!-- page -->
|
||||
|
||||
</body>
|
||||
</html>
|
30
assets/webconfig/errorpages/header.html
Normal file
30
assets/webconfig/errorpages/header.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Hyperion WebServer - Error</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="/css/bootstrap.css" rel="stylesheet">
|
||||
|
||||
<!-- Flags -->
|
||||
<link href="/css/flag-icon.min.css" rel="stylesheet">
|
||||
|
||||
<!-- MetisMenu CSS -->
|
||||
<link href="/css/metisMenu.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link href="/css/sb-admin-2.css" rel="stylesheet">
|
||||
<link href="/css/hyperion.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom Fonts -->
|
||||
<link href="/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<style>
|
||||
body {margin:auto; padding-top:50px; }
|
||||
#footer { margin-top:10px; font-size:0.5em; }
|
||||
#page { }
|
||||
.panel-heading { font-weight:bold; font-size: 1.3em; }
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="page" class="container">
|
Reference in New Issue
Block a user