Thanks Aleks. I'll give it a try! 2010/7/8 Aleksandar Lazic <[email protected]>
> Dear Mikael, > > yes it is possible with haproxy. > > > On Die 06.07.2010 21:40, zabrane Mikael wrote: > >> Hi List, >> >> I'm new to HAProxy, so please apologize if the question was already >> asked before. >> >> I've a homemade web server running on my internat. It works like this. >> > > [snipp] > > > So, my question is simple: >> >> Could I tell HAProxy to inspect the HTTP headers, and decide: >> >> a. If the special header "X-RAWDATA: ..." doesn't exists, let the >> request go to the live Web directly. >> > > acl host_live hdr(X-RAWDATA) > > > b. Otherwise, forward the request to my webserver. >> > > use_backend live if host_live > # if not use default_backend servers > > http://haproxy.1wt.eu/download/1.4/doc/configuration.txt > 7.5.3. Matching at Layer 7 > > A example of such a setup could be found in > > haproxy-1.4.8/examples/acl-content-sw.cfg > > Hth > > Aleks > > -- Regards Zabrane

