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):

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

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

listen http_proxy 127.0.0.1:8080
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 127.0.0.1:8080 weight 1 maxconn 15 check
share|improve this question
1  
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

 
discard

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

Browse other questions tagged or ask your own question.