Backend not invoked


#1

I am looking at forwarding HTTP (front end) to HTTPS (backend). Backend is not being invoked.
Simplified to only HTTP to HTTP, still no luck.
HA-Proxy version 1.8.7 2018/04/07

Debug mode shows only this
haproxy -f /etc/haproxy/haproxy.cfg -d
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.

Available filters :
[TRACE] trace
[COMP] compression
[SPOE] spoe
Using epoll() as the polling mechanism.
00000000:http-in.accept(0004)=0006 from [127.0.0.1:59088] ALPN=
00000000:http-in.clicls[adfd:ffffffff]
00000000:http-in.closed[adfd:ffffffff]

Configuration

global
log 127.0.0.1 local6
#daemon
maxconn 256
defaults
log 127.0.0.1 local6
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
option forwardfor
option http-server-close
frontend http-in
#log 127.0.0.1 local6
bind *:8091
reqadd X-Forwarded-Proto:\ https
use_backend dcc
backend dcc
mode http
server localhost :9022


#2

Pointed the backend to a HTTP end point on local server.
I see the request being forwarded. Since there were no logs to indicate request was being forwarded, I assumed request was not being forwarded.
Need to test with HTTP (front end) to HTTPS(backend)


#3

This requires adding to the server config line the ssl keyword and either the CA certificate (ca-file /path/to/ca-cert.pem) or disable cert verification (verify none).