Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- frontend test_vip
- bind 203.0.113.100:80
- http-request deny if { hdr_reg(user-agent) -i -f /haproxy/conf/haproxy-blocked-user-agents }
- http-request redirect prefix https://www.example.com code 308 if { hdr(host) -i example.com }
- use_backend %[req.hdr(host),lower,map(/haproxy/maps/header.map)]
- use_backend %[path,lower,map(/haproxy/maps/path.map)]
- default_backend unrecognized_hostname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement