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

Condition with path_reg and map_dom with regexps

$
0
0

@loxybjorn wrote:

Hi,

I’d like to match a sample (path) with a regular expression read from a map (with hdr(host) as a key). Is this possible somehow?

Example: Given a request with hdr(host) set to ‘foo.com’ and path set to /bar I’d like to have a map file like this:
foo.com ^/bar/.*

I posted basically the same question on stackoverflow before I found this community.

Thanks in advance

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4754

Trending Articles



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