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

HAProxy acl and maps

$
0
0

@antnappi wrote:

Hello,
I’m trying to setting up my haproxy in order to use maps.
My idea is to have a map_file.txt:

_status_example.com:443   ON
example.com:443   http://new_url.com

In the acl I would like to have something like that:

acl redirect_enabled {if _status_example.com:443==ON }
http-redirect example.com:443,map(./map_file.txt) if redirect_enabled

I’m struggling trying to write the acl part. Is there a way to compare two string in haproxy configuration?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4735

Trending Articles



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