This is the backend config:
backend be-stg-spark-443
description Back end for spark stg ssl
errorfile 503 /etc/haproxy/pages/spark-error.http
no log
log 127.0.0.1 local0 notice err
server palazzo 10.100.2.17:443 ssl track chk-liferay-stg-443/palazzo
The contents of the file referenced are pretty simple:
HTTP/1.0 503 Service Unavailable
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<html>
<head>
<title>Service Unavailable</title>
</head>
<body>
<h1 style="text-align:center;">We are sorry, but the spark site is
temporarily unavailable, either for maintenance or to resolve a system
issue.</h1>
<h2 style="text-align:center;">We are working to restore the website as
quickly as possible.</h2>
<h2 style="text-align:center;">Please try again later.</h2>
</body>
</html>
When I take down the back end server and make a request, I get the
browser's standard unavailable page, I do not see the custom page I
defined. Have I done something wrong?
Here's haproxy -vv:
root@lb3:/etc/haproxy# haproxy -vv
HA-Proxy version 1.5.12 2015/05/02
Copyright 2000-2015 Willy Tarreau <[email protected]>
Build options :
TARGET = linux2628
CPU = native
CC = gcc
CFLAGS = -O2 -march=native -g -fno-strict-aliasing
OPTIONS = USE_ZLIB=1 USE_OPENSSL=1 USE_PCRE=1
Default settings :
maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200
Encrypted password support via crypt(3): yes
Built with zlib version : 1.2.8
Compression algorithms supported : identity, deflate, gzip
Built with OpenSSL version : OpenSSL 1.0.2a 19 Mar 2015
Running on OpenSSL version : OpenSSL 1.0.2a 19 Mar 2015
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports prefer-server-ciphers : yes
Built with PCRE version : 8.31 2012-07-06
PCRE library supports JIT : no (USE_PCRE_JIT not set)
Built with transparent proxy support using: IP_TRANSPARENT
IPV6_TRANSPARENT IP_FREEBIND
Available polling systems :
epoll : pref=300, test result OK
poll : pref=200, test result OK
select : pref=150, test result OK
Total: 3 (3 usable), will use epoll.
This is the system it's running on:
Linux lb3 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
Thanks,
Shawn