Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have to use haproxy on one machine. I want to do redirect requests from Ip to the same ip (with another port).

My configuration (doesn't work):

maxconn 4096 # Total Max Connections. This is dependent on ulimit
nbproc 1 # Number of processing cores. Dual Dual-core Opteron is 4 cores for example.
mode http

clitimeout 600000000
srvtimeout 600000000
contimeout 400000000
        log          local0
        log          local1 notice
option httpclose # Disable Keepalive

listen http_proxy
balance leastconn # Load Balancing algorithm
acl acl_apache path_end .avi .jpeg
#option httpchk
option forwardfor # This sets X-Forwarded-For
## Define your servers to balance
server DE2 weight 1 maxconn 15 check
share|improve this question
Is apache or other www server listening on port 8080 ?? –  B14D3 Nov 2 '12 at 8:01
No, there is no other servers running. –  Michał K. Nov 2 '12 at 12:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.