link
O erro do arquivo de log haproxy:
{} <BADREQ> 400 mainssl/<NOSRV> <ip> 187 -1
saída do soquete show errors
:
frontend mainssl (#3): invalid request
backend <NONE> (#-1), server <NONE> (#-1), event #4
src <ip>, session #7, session flags 0x00000080
HTTP msg state 26, msg flags 0x00000000, tx flags 0x00000000
HTTP chunk len 0 bytes, HTTP body len 0 bytes
buffer flags 0x00908002, out 0 bytes, total 212 bytes
pending 212 bytes, wrapping at 16384, error at position 0:
configuração haproxy:
frontend mainssl *:443 ssl crt /etc/haproxy/certs/<domain>.pem
reqadd X-Forwarded-Proto:\ https
option forwardfor
capture request header Host len 32
log-format %hr\ %r\ %ST\ %b/%s\ %ci:%cp\ %B\ %Tr
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
use_backend letsencrypt if letsencrypt-acl
default_backend test
backend test
balance roundrobin
server node1 127.0.0.1:8888 check
backend letsencrypt
server letsencrypt_renewal 127.0.0.1:54321
Eu vi perguntas semelhantes, mas não consegui resolver o problema. Como posso resolver ou resolver mais problemas?