1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-03-09 15:40:18 +00:00
HyperProxmox/system/BASE_SOFT/VARNISH/4.1/conf/includes/error.vcl
thomas.guiseppin 5352a2b94a first commit
2017-10-21 22:04:42 +02:00

138 lines
5.6 KiB
Text

# The vcl_error() procedure
set obj.http.Content-Type = "text/html; charset=utf-8";
set obj.http.Retry-After = "5";
synthetic {"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>"} + obj.status + " " + obj.response + {"</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Backend Error page">
<meta name="author" content="Pascal A.">
<meta name="generator" content="vim">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<!-- Le styles -->
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="page-header">
<h1 class="pagination-centered">Error "} + obj.status + " " + obj.response + {"</h1>
</div>
<div class="alert alert-error pagination-centered">
<i class="icon-warning-sign"></i>
We're very sorry, but the page could not be loaded properly.
<i class="icon-warning-sign"></i>
</div>
<blockquote>This should be fixed very soon, and we apologize for any inconvenience.</blockquote>
<div class="accordion-heading pagination-centered">
<button class="btn accordion-toggle" data-toggle="collapse" href="#debug">
Show debug
</button>
</div>
<div id="debug" class="accordion-body collapse">
<div class="accordion-inner">
<table class="table table-striped table-bordered table-condensed"><caption><h2 class="pagination-centered">Debug Information</h2></caption>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
<tr>
<td colspan="2">General</td>
</tr>
<tr>
<td width="20%">XID</td>
<td>"} + req.xid + {"</td>
</tr>
<tr>
<td>Time</td>
<td>"} + now + {"</td>
</tr>
<tr>
<td colspan="2">Request</td>
</tr>
<tr>
<td>HTTP host</td>
<td>"} + req.http.Host + {"</td>
</tr>
<tr>
<td>Request type</td>
<td>"} + req.request + {"</td>
</tr>
<tr>
<td>HTTP Protocol version</td>
<td>"} + req.proto + {"</td>
</tr>
<tr>
<td>URL</td>
<td>"} + req.url + {"</td>
</tr>
<tr>
<td>Cookies</td>
<td>"} + regsuball(req.http.cookie, "; ", "<br />") + {"</td>
</tr>
<tr>
<td>Accept-Encoding</td>
<td>"} + req.http.Accept-Encoding + {"</td>
</tr>
<tr>
<td>Cache-Control</td>
<td>"} + req.http.Cache-Control + {"</td>
</tr>
<tr>
<td>HTTP header</td>
<td>"} + req.http.header + {"</td>
</tr>
<tr>
<td>GZIP supported</td>
<td>"} + req.can_gzip + {"</td>
</tr>
<tr>
<td>Backend</td>
<td>"} + req.backend + {"</td>
</tr>
<tr>
<td colspan="2">Server</td>
</tr>
<tr>
<td>Identity</td>
<td>"} + server.identity + {"</td>
</tr>
<tr>
<td>IP:port</td>
<td>"} + server.ip + {":"} + server.port + {"</td>
</tr>
<tr>
<td colspan="2">Client</td>
</tr>
<tr>
<td>IP</td>
<td>"} + client.ip + {"</td>
</tr>
</table>
</div>
</div>
</div>
<footer class="container pagination-centered">
</footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
</body>
</html>
"};