[PATCH] Normalizing the Host: header

Per Buer perbu at varnish-software.com
Thu Feb 17 20:53:15 CET 2011


On Thu, Feb 17, 2011 at 8:50 PM, Nils Goroll <nils.goroll at uplex.de> wrote:
>
>> I've look through "man vcl" and I can spot any errors. Any hints on
>> where to look for these errors?
>
> There are many examples for matches on the host header like
>
>  if (req.http.host ~ "^(www.)?example.com$") {
>    set req.backend = www;
>  }
>
> To accept mixed case host headers, examples for matches on http.host should all
> use the (?i) option setting.

Right. Of course. Silly me. I'll get to work.

-- 
Per Buer, Varnish Software
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
Varnish makes websites fly!
Want to learn more about Varnish? http://www.varnish-software.com/whitepapers




More information about the varnish-dev mailing list