Hi, am getting these results in haproxy logs:
Feb 2 13:17:40 localhost haproxy[3245]:
10.10.10.62:54164[02/Feb/2010:13:17:40.774] load_balanced
load_balanced/www1 -1/1/1/-1/4 0
715 - - ---- 0/0/0/0/0 0/0 "<BADREQ>"
I need to log the requests and I cannot understand why we are getting
<BADREQ> instead of the actual request.
haproxy.cfg
# this config needs haproxy-1.1.28 or haproxy-1.2.1
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults
log global
mode tcp
# option tcplog
option httplog
option dontlognull
retries 3
option redispatch
maxconn 8000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen load_balanced 10.10.10.245:80,10.10.10.245:443
stats enable
stats auth admin:12345
# capture request header Host len 20
option ssl-hello-chk
option forwardfor
balance source
server www1 10.0.1.101 weight 10 check
server www2 10.0.1.103 weight 10 check
Running 1.3.22 by the way.