Can you spare a monment to help me with haproxy?
Reid Johnson
rjohnson at corenetwork.ca
Sun Aug 8 14:46:21 PDT 2004
Hello,
First of all I must say thank you in advance for any assistance you can
provide, also I do understand if you are to busy to spare some time. Haproxy
is a great tool and has been serving me well, but I would like to pass
client IP's onto my web servers for logging. I thought I had my config
correct but obviously not, after reading the docs it looked like the
forwardfor option was the solution. My proxy still passes its own IP to the
web servers. Any ideas?
Thanks again
Reid
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
chroot /tmp
uid 11
gid 2
daemon
# debug
# quiet
defaults
log global
mode http
option httplog
option dontlognull
retries 3
redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen StrongHold
bind 65.255.229.16:80
source 65.255.229.16
mode http
option forwardfor
balance roundrobin
server stronghold-nas1 65.255.229.35:80 check inter 2000 rise 2
fall 5
# server stronghold-nas2 65.255.229.36:80 check inter 2000 rise 2
fall 5
listen webpool
bind 65.255.229.18:80
source 65.255.229.18
mode http
option forwardfor
balance roundrobin
server web1 65.255.229.37:80 check inter 2000 rise 2 fall 5
server web2 65.255.229.38:80 check inter 2000 rise 2 fall 5
More information about the freebsd-ports
mailing list