erreurs HTTP perso sur haproxy

This commit is contained in:
nyanloutre 2019-01-24 18:56:12 +01:00
parent 8c79c29b5d
commit 51514e5c5a
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,39 @@
HTTP/1.0 503 Service Unavailable
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>503 Service Unavailable</title>
<meta name="description" content="Le serveur n'est pas joignable">
<meta name="author" content="Nyanloutre">
<style>
body {
background-image: url("https://storage.sbg3.cloud.ovh.net/v1/AUTH_5b4f5a8f8ed04ddb9725f42ae798cfab/images/1548346925-data-center-shot.jpg");
background-size: 100%;
color: white;
text-shadow: 0px 0px 3px black, 0px 0px 4px black;
text-align: center;
font-size: 2rem;
}
#travolta {
position: fixed;
height: 70%;
bottom: 0;
left: 40%;
}
</style>
</head>
<body>
<h1>503 Service non disponible</h1>
<img id="travolta" src="https://storage.sbg3.cloud.ovh.net/v1/AUTH_5b4f5a8f8ed04ddb9725f42ae798cfab/images/7VE.gif">
<p>Impossible de contacter le serveur demandé</p>
</body>
</html>

View File

@ -23,6 +23,7 @@ let
timeout client 10s
timeout connect 4s
timeout server 30s
errorfile 503 ${./errorfiles/503.html}
userlist LOUTRE
user paul password $6$YNjCpiPABu9$.iEp.3BgoswHcX3SMjz1/CiyqFQn/fjnxtT9CWBqQHBKynvK2kh/i62ije0WmCvhKRUhy9gdVbJStM3ciGXnC1
frontend public