Le 21/02/2012 20:20, Cyril Bonté a écrit :
You could optimize your configuration by merging the 2 "listen" parts to
share the maxconn limits.
In you case, it could be something like :
listen http_https
bind 0.0.0.0:80
bind 0.0.0.0:81
mode http
cookie WEBSERVERID insert
option httplog
balance source
option forwardfor except 192.168.20.5
option httpclose
option redispatch
maxconn 10000
reqadd X-Forwarded-Proto:\ http if { dst_port 80 }
reqadd X-Forwarded-Proto:\ https if { dst_port 81 }
server FE04 192.168.20.30:443 cookie A maxconn 5000

Oops, please read 192.168.20.30:80 ;-)

--
Cyril Bonté

Reply via email to