Skip to content

Commit

Permalink
Change to use a 503 error page to fully address #4215
Browse files Browse the repository at this point in the history
This allows custom error pages to be layered on in custom haproxy images.
  • Loading branch information
ramr committed Oct 5, 2015
1 parent 7f6ddb7 commit 7385dec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions images/router/haproxy/conf/error-page-503.html
@@ -0,0 +1,3 @@
<html><body><h1>503 Service Unavailable</h1>
No server available to handle the request.
</body></html>
2 changes: 1 addition & 1 deletion images/router/haproxy/conf/haproxy-config.template
Expand Up @@ -146,7 +146,7 @@ backend openshift_default
# line below (server ... 127.0.0.1:8080) and point it to your custom
# backend service or alternatively, you can send a custom 503 error.
#server openshift_backend 127.0.0.1:8080
#errorfile 503 /path/to/custom-503-page.html
errorfile 503 /var/lib/haproxy/conf/error-page-503.html

##-------------- app level backends ----------------
{{/*
Expand Down

0 comments on commit 7385dec

Please sign in to comment.