Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. frontend test_vip
  2. bind 203.0.113.100:80
  3. http-request deny if { hdr_reg(user-agent) -i -f /haproxy/conf/haproxy-blocked-user-agents }
  4. http-request redirect prefix https://www.example.com code 308 if { hdr(host) -i example.com }
  5. use_backend %[req.hdr(host),lower,map(/haproxy/maps/header.map)]
  6. use_backend %[path,lower,map(/haproxy/maps/path.map)]
  7. default_backend unrecognized_hostname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement