http 可以工作但无法通过安全连接进行连接。
haproxy日志文件错误:
{} <BADREQ> 400 mainssl/<NOSRV> <ip> 187 -1
套接字输出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:
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
我见过类似的问题,但无法解决这个问题。我该如何解决或进一步排除故障?