Hi ,
I am getting few errors after upgrading my haproxy version from 1.3.25 to
1.4.8, its related to something for tcplog and http mode that can't
understand about changes in haproxy version upgrade, can anyone help out to
set these options for 1.4.x version. Its was very good running over older
version 1.3.25 but error after upgrading.
Error:
Starting ravi_apps.1: [WARNING] 339/154647 (29412) : config : 'stats'
statement ignored for proxy 'VIP:apps.ravibhure.com:192.168.21.54:443' as it
requires HTTP mode.
[WARNING] 339/154647 (29412) : config : 'option forwardfor' ignored for
proxy 'VIP:apps.ravibhure.com:192.168.21.54:443' as it requires HTTP mode.
[WARNING] 339/154647 (29412) : config : 'option httpclose' ignored for proxy
'VIP:apps.ravibhure.com:192.168.21.54:443' as it requires HTTP mode.
My working haproxy.cfg (ravi_apps.1.cfg)
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 25000
user ravi
group ravi
defaults
log global
mode http
option tcplog
option dontlognull
option httpclose
retries 3
option redispatch
maxconn 25000
contimeout 5000
clitimeout 50000
srvtimeout 50000
stats enable
stats auth ravi:xxxxxx ##Auth user pass
#Configuration for apps.ravibhure.com
listen VIP:apps.ravibhure.com:192.168.21.54:80
bind 192.168.21.54:80
log global
maxconn 25000
mode http
option forwardfor
balance leastconn
server REAL:app53:10.1.1.153:80 10.1.1.153:80 check
server REAL:app54:10.1.1.154:80 10.1.1.154:80 check
listen VIP:apps.ravibhure.com:192.168.21.54:443
bind 192.168.21.54:443
log global
maxconn 25000
mode tcp
option forwardfor
balance leastconn
option ssl-hello-chk
server REAL:app53:10.1.1.153:443 10.1.1.153:443 check
server REAL:app54:10.1.1.154:443 10.1.1.154:443 check
--
Thanks & Regards,
Ravi Bhure
http://www.indianGNU.org
Register Linux user # 463269