its me again

Simon Lyall simon at darkmere.gen.nz
Tue Apr 29 06:27:41 CEST 2008


On Mon, 28 Apr 2008, Pavel Pragin wrote:
> if (req.http.host == "www.tibcocommunity.com") {
>
>                 set req.http.host = " www.tibcommunity.com ";
>
> }

I'd watch your spaces in the example above, that might be confusing
things.

My config has:

  if (req.http.host ~ "^simon.darkmere.gen.nz$") {
      set req.http.host = "www.darkmere.gen.nz";
      set req.backend = darkmere;
  }

Note the lack of spaces in between my quotes.

Perhaps try and add a header or something instaed of setting a new
req.http.host to make sure your test is working.

> 2) Varnishlog output when accessing the site:

Try varnishncsa

-- 
Simon Lyall  |  Very Busy  |  Web: http://www.darkmere.gen.nz/
"To stay awake all night adds a day to your life" - Stilgar | eMT.




More information about the varnish-misc mailing list