Skip to content

Commit a7faf10

Browse files
committed
Better haproxy 503 page
1 parent 8e4f7c5 commit a7faf10

File tree

1 file changed

+74
-10
lines changed

1 file changed

+74
-10
lines changed

images/router/haproxy/conf/error-page-503.http

+74-10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Content-Type: text/html
77
<html>
88
<head>
99
<meta name="viewport" content="width=device-width, initial-scale=1">
10+
1011
<style type="text/css">
1112
/*!
1213
* Bootstrap v3.3.5 (http://getbootstrap.com)
@@ -23,15 +24,11 @@ Content-Type: text/html
2324
margin: 0;
2425
}
2526
h1 {
26-
font-size: 1.9em;
27+
font-size: 1.7em;
2728
font-weight: 400;
2829
line-height: 1.3;
2930
margin: 0.68em 0;
3031
}
31-
@media (min-width: 768px) {
32-
h1 {
33-
font-size: 2.15em;}
34-
}
3532
* {
3633
-webkit-box-sizing: border-box;
3734
-moz-box-sizing: border-box;
@@ -52,25 +49,92 @@ Content-Type: text/html
5249
font-size: 13px;
5350
color: #333333;
5451
background-color: #ffffff;
55-
margin: 4em 3em;
52+
margin: 2em 1em;
5653
}
5754
p {
5855
margin: 0 0 10px;
5956
font-size: 13px;
60-
font-weight: 300;
61-
line-height: 1.4;
6257
}
58+
.alert.alert-info {
59+
padding: 15px;
60+
margin-bottom: 20px;
61+
border: 1px solid transparent;
62+
background-color: #f5f5f5;
63+
border-color: #8b8d8f;
64+
color: #363636;
65+
margin-top: 30px;
66+
}
67+
.alert p {
68+
padding-left: 35px;
69+
}
70+
a {
71+
color: #0088ce;
72+
}
73+
74+
ul {
75+
position: relative;
76+
padding-left: 51px;
77+
}
78+
p.info {
79+
position: relative;
80+
font-size: 15px;
81+
margin-bottom: 10px;
82+
}
83+
p.info:before, p.info:after {
84+
content: "";
85+
position: absolute;
86+
top: 9%;
87+
left: 0;
88+
}
89+
p.info:before {
90+
content: "i";
91+
left: 3px;
92+
width: 20px;
93+
height: 20px;
94+
font-family: serif;
95+
font-size: 15px;
96+
font-weight: bold;
97+
line-height: 21px;
98+
text-align: center;
99+
color: #fff;
100+
background: #4d5258;
101+
border-radius: 16px;
102+
}
103+
63104
@media (min-width: 768px) {
64-
p {
65-
font-size: 14px;
105+
body {
106+
margin: 4em 3em;
66107
}
108+
h1 {
109+
font-size: 2.15em;}
67110
}
111+
68112
</style>
69113
</head>
70114
<body>
71115
<div>
72116
<h1>Application is not available</h1>
73117
<p>The application is currently not serving requests at this endpoint. It may not have been started or is still starting.</p>
118+
119+
<div class="alert alert-info">
120+
<p class="info">
121+
Possible reasons you are seeing this page:
122+
</p>
123+
<ul>
124+
<li>
125+
<strong>The host doesn't exist.</strong>
126+
Make sure the hostname was typed correctly and that a route matching this hostname exists.
127+
</li>
128+
<li>
129+
<strong>The host exists, but doesn't have a matching path.</strong>
130+
Check if the URL path was typed correctly and that the route was created using the desired path.
131+
</li>
132+
<li>
133+
<strong>Route and path matches, but all pods are down.</strong>
134+
Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running.
135+
</li>
136+
</ul>
137+
</div>
74138
</div>
75139
</body>
76140
</html>

0 commit comments

Comments
 (0)