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 trouble with HProxy and content switching. What i try to do:

i have one frontend which listens on 10.1.1.10

if the request is http:// 10.1.1.10/portal, it should be forwarded to backend portal if the request is http:// 10.1.1.10/client is should be forwarded to backend client

i tried to achieve that with ACLs and url_beg, but it will not work. Only the default backend works always

# Configuration for HTTP site
frontend http-in
        mode http
        bind *:80
        acl client path_beg /client
        acl portal path_beg /portal
        use_backend client if client
        use_backend portal if portal
        default_backend portal



backend client
        mode http
        balance source
        server client1 10.1.20.21:8080 check
        server client2 10.1.20.22:8080 check


backend portal
        mode http
        balance source
        server portal1 10.1.20.51:8080 check
        server portal2 10.1.20.52:8080 check
share|improve this question
add comment

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.