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

http frontend , backend

$
0
0

@bluex wrote:

Hi,

I need to use haproxy for listening to port 80 and forward the request if it matches the role for that I did this this but I don’t know how I can tell to use the prober back end

frontend httpfw
bind *:80
mode http
acl # what I must write here to defend a domain like test1.com
acl # what I must write here to defend a domain like test2.com

use_backend httptest1 if # how can I told to use this backend if the request comes from test1.com
use_backend httptest2 if # how can I told to use this backend if the request come from test2.com

backend httptest1
mode http
balance source
server httptest1 1.1.1.1:80

backend httptest2
mode http
balance source
server httptest2 2.2.2.2:80

Thanks :slight_smile:

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4742

Trending Articles



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