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

Mapping domains and subdomains

$
0
0

HA v. 2.4.12

Frontend:
use_backend %[hdr(host),lower,map_dom(/etc/haproxy/Maps/domains.map)]

domains.map:

domain.com srv
sub1.domain.com srv1
sub2.domain.com srv3

Now, calling anysub.domain.com only matches the first occurrence of map ‘domain.com
What would be the right syntax for an exact match? map_beg, map_end or map_str ?

Also wonder, whether can point to multiple map files (due to better organization) at same front end?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4743

Trending Articles



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