Hi, On Sun, Mar 11, 2012 at 07:36:42PM +0000, Jonathan Matthews wrote: > On 6 February 2012 19:19, Jonathan Bond-Caron <jbo...@openmv.com> wrote: > > frontend gde_mtl *:80 > > acl host_static hdr_end(host) mvdd.net > > use_backend static if host_static > > default_backend dynamic > > > > If it possible for hdr_end(host) to fail for some reason? We have odd cases > > (1%) where that rule isn???t matched. > > I wouldn't be surprised to find it's some client out there appending > the port to the host header. e.g. "Host: www.google.com:8080". Curl > does this, for instance, when a request goes over a non-standard port. > > Alternatively, it might be random web traffic (malicious or > incorrectly targeted) hitting you. Have you verified the requests are > what you expect, and not collateral/drive-by traffic? > > Perhaps you might look at using "hdr_dom", which (I assume; untested) > does the job of decomposing the header value into dot (and colon?) > separated chunks for you.
You're perfectly right Jonathan, it was done exactly for this purpose. Another case which happens is people adding a '.' after the domain. Regards, Willy