Haproxy 2.8
Ubuntu 22.04
I’m assuming that haproxy logs into /var/log/haproxy/haproxy.log
.
I see logs there. But not everytime. Sometimes I see no logs at all although I’m initiating a request from my browser at home when I connect to my server under test.
This is tail -f /var/log/haproxy/haproxy.log
after I did a service haproxy reload
.
Then I did a telnet www.mydomain.org 80
and got the following:
root@mail:/var/log/haproxy# tail -f haproxy.log
Nov 21 12:24:24 mail haproxy[141126]: [WARNING] (141126) : Proxy cmssite stopped (cumulated conns: FE: 0, BE: 28).
Nov 21 12:24:24 mail haproxy[141126]: Proxy website stopped (cumulated conns: FE: 0, BE: 462).
Nov 21 12:24:24 mail haproxy[141126]: Proxy cmssite stopped (cumulated conns: FE: 0, BE: 28).
Nov 21 12:24:24 mail haproxy[141124]: [NOTICE] (141124) : haproxy version is 2.8.3-d6e5cd-70
Nov 21 12:24:24 mail haproxy[141124]: [NOTICE] (141124) : path to executable is /usr/sbin/haproxy
Nov 21 12:24:24 mail haproxy[141124]: [WARNING] (141124) : Former worker (141126) exited with code 0 (Exit)
Nov 21 12:24:24 mail haproxy[141126]: Proxy cmssite stopped (cumulated conns: FE: 0, BE: 28).
Nov 21 12:28:08 mail haproxy[168213]: <myserverip>:53419 [21/Nov/2023:12:28:03.600] http-in/2: SSL handshake failure (error:0A00009C:SSL routines::http request)
Nov 21 12:28:08 mail haproxy[168213]: <myserverip>:53419 [21/Nov/2023:12:28:03.600] http-in/2: SSL handshake failure (error:0A00009C:SSL routines::http request)
Nov 21 12:28:16 mail haproxy[168213]: <myserverip>:53421 [21/Nov/2023:12:28:13.322] http-in http-in/<NOSRV> -1/-1/3603 0 PR 2/2/0/0/0 0/0
Nov 21 12:28:16 mail haproxy[168213]: <myserverip>:53421 [21/Nov/2023:12:28:13.322] http-in http-in/<NOSRV> -1/-1/3603 0 PR 2/2/0/0/0 0/0
Nov 21 12:29:08 mail haproxy[168213]: <some_unknown_site>:53504 [21/Nov/2023:12:29:08.911] http-in/2: SSL handshake failure (error:0A00018C:SSL routines::version too low)
Sure, I’m connecting through port 80, but shouldn’t that be redirected to https?
And the funny thing: I don’t see any traces in the log from my browser accesses to the site, when entering
http://www.mydomain.org/