On Thu, Jan 17, 2013 at 3:27 PM, Jonathan Matthews <[email protected]>wrote:
> On 17 January 2013 23:02, Joel Krauska <[email protected]> wrote: > > Is there a simple way to have haproxy send a simple response for a given > > URL? > > > > Matching somewhat the functionality of Nginx's empty_gif module? > > http://wiki.nginx.org/HttpEmptyGifModule > > I don't need to send an actual empty gif, but just a simple 200 and OK > would > > be fine. > > > > Use case would be to have an ACL that when matched always responds with a > > simple 200. > > (external check to make sure HAProxy is functional without needing to hit > > any backends.) > > Sounds like you want to configure "monitor-uri": > http://cbonte.github.com/haproxy-dconv/configuration-1.4.html#monitor-uri. > > monitor-uri looks like it would only work as a path match. I need to match a Host header. eg. ping.example.com (always return 200 when haproxy is running) vs www.example.com (proxy to backend pool)

