Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4718

ACL Re-direction wrong at times

$
0
0

Hello,

Apologies if i’m completely misusing HA Proxy. However, I’ve started to host some websites for friends but down to the lack of public facing IP’s i’ve been trying to use the one IP and then HA proxy decided which backend it should go to.

I’m currently using ACLs with “if this url then point to this backend”. However, looks like it’s sometimes bouncing between whatever backend is available instead of the single one that i’ve specified.

# Configuration for HTTP site
frontend http-in
    bind *:80
    acl owlmagic hdr(host)  owlmagic.mydomain.com
    acl JamesT hdr(host)   jamest.mydomain.com

 use_backend OwlMagic if owlmagic
    use_backend JamesTay if JamesT


backend OwlMagic
 mode http
 server WEB1 192.168.10.12:80 

backend JamesTay
mode http
        server WEB2 192.168.10.16:80

However, whenever i access JamesT.mydomain.com it sometimes points to the correct backend and then others it will point to OwlMagic and vice versa.

Is this a config problem on my end or am I not using this correctly at all?

Thanks,

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4718

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>