0
votes
0answers
203 views

How to use regexp in haproxy?

I know haproxy can use PCRE (enable USE_PCRE and USE_STATIC_PCRE) or POSIX regexp, and POSIX regexp include BRE (Basic Regular Expression) and ERE (Extended Regular Express). If i install haproxy ...
2
votes
1answer
341 views

Regexp in HAProxy's reqrep for asset management

I'm hosting assets on S3 with this kind of URL: http://cdn.site.com/image.jpg In my application I automatically serve versioned URL to force browser to download new files after the deployment: ...
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
685 views

HAProxy reqirep setting results in 504 Gateway Timeout

I am trying to rewrite a single path via HAProxy. Without the rule in place, a 404 is returned for the directory page (from an IIS node). Once I add the rule, the page returns a 504 Gateway Timeout ...