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

Help about Haproxy control list, how can allow only some specific links to pass haproxy server

$
0
0

@yanggis wrote:

Help about Haproxy control list, how can allow only some specific links to pass haproxy server
Dear all, I have a domain whitelist file, which includes around 200 links. The whitelist looks like:

facebook.com
google.com
amazon.com
ebay.com
...
bbc.com

I want to create a acl control list to only allow the domains in the whitelist to pass my server. At present, I tried the config file, but unfortunately it doesnt work as expected:

default_backend b_deadend_http
use_backend http_ok if { hdr_beg(host) -f /etc/haproxy/white.lst }

I'm not sure what's wrong, does the whitelist file require any special format? or the acl rule is problematic?

Any tips will be appreciated.

Posts: 5

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>