0
votes
1answer
1k views

How do I match a wildcard host in ACL lists in HAproxy?

I have the following lines in my haproxy.conf: acl valid_domains hdr(Host) -i mysite.com images.mysite.com docs.mysite.com admin.mysite.com redirect location http://mysite.com/invalid_domain if ...
0
votes
1answer
994 views

HAProxy - Perform multiple rewrites based on conditions

I am trying to rewrite a URI as well as a host header based on some conditions. Here is an example of what I'm trying to accomplish: I request http://sub1.example.com/test/files/other if ...
4
votes
1answer
629 views

Rate/Bandwidth limiting with haproxy, what are the options?

I have tried reading up on different methods of limiting (rate/bw) with haproxy, but seems the only working implementation I find is per /32 ip based limit. Is it possible to do rate limiting based on ...
3
votes
2answers
3k views

haproxy acl - accept only from specific IPs

I've got haproxy and need to provide smtp to servers which does not have direct connection. Here is portion of my config: listen smtp 10.12.23.10:3025 mode tcp server smtp ...
1
vote
2answers
2k views

HAProxy seems to be load balancing instead of following ACL rules

I'm seeing some really odd behavior with HAProxy. I have the following setup below designed to allow example.com/wiki to go to one server and example.com/ go to another. The trouble is that it seems ...
0
votes
1answer
5k views

Haproxy ACL for balance on URL request

I'm usung Ubuntu with haproxy 1.4.13 version. Its load balancing two subdomains: app1.domain.com app2.domain.com now i want to be able to use ACL to send based on url request to the right ...
0
votes
1answer
832 views

haproxy access list using path_dir having issues with firefox

I'm trying to route all requests containing a path directory of /socket.io/ to a separate port with HAProxy. Here is my config file: global maxconn 4096 # Total Max Connections. This is ...
1
vote
2answers
2k views

haproxy: Is there a way to group acls for greater efficiency?

I have some logic in a frontend that routes to different backends based on both the host and the url. Logically it looks like this: if hdr(host) ends with 'a.domain.com': if url starts with ...