We're trying to filter out HTTP HEAD requests using haproxy,
to make the proxy behave like shoutcast servers, ref:
http://comments.gmane.org/gmane.comp.web.haproxy/2961
We're using haproxy-1.4.8-1.el6.x86_64 (EPEL) and have configured:
reqdeny ^HEAD
errorfile 403 /dev/null
This was working, but now it seems our clients have changed behaviour,
and it doesn't work anymore :-( With this configuration haproxy is
close to, but not 100% replicating the behaviour of shoutcast servers.
HAproxy waits for an empty line before aborting, while shoutcast
servers abort immediately when they're sent the HEAD request:
haproxy:
------------------------------------------
$ telnet tvproxy.example.com 80
Trying my.ip.here...
Connected to tvproxy.example.com.
Escape character is '^]'.
HEAD /webradioproxy/8000/74.63.99.170/ HTTP/1.0
Connection closed by foreign host.
------------------------------------------
shoutcast:
------------------------------------------
$ telnet 74.63.99.170 8000
Trying 74.63.99.170...
Connected to 74.63.99.170.
Escape character is '^]'.
HEAD / HTTP/1.0
Connection closed by foreign host.
------------------------------------------
Is there any way to get haproxy to abort before empty line also ?
-jf