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

[SOLVED] Reverse proxy : Multiple domain with same path

$
0
0

@tuxdotnet wrote:

hi all,

I have a change to do for my reverse proxy in ACL to forward to multiple domain with multiple path

i try this conf (format X time with different fqdn/path in my conf …)

acl Coll hdr_dom(host) -m dom reverseproxy.domain.com path_reg ^\/col\/[a-z]+\/RFP[/]?
acl Mon hdr_dom(host) -m dom reverseproxy.domain.com path_reg ^\/sup/[a-z]+\/RFP[/]?
use_backend MColl if Coll
use_backend MMon if Mon

Case 1: the first fqdn/path is call and go to the backend Mcoll
Case 2: the second fqdn/path is call and go to the backend Mcoll

Each backend point to different host

Thanks

Posts: 3

Participants: 1

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>