@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.comI 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