Configure varnish to pipe a subdomain
varnish at streikt.net
varnish at streikt.net
Tue Jan 22 13:33:30 CET 2008
Thanks a lot Erik, this did it! Requests to the subdomain are no longer
cached. Great! :-) Going live with this configuration right now..
> Sending another one, the previous got messed up (using a webmail client)
>
> Neither am I a regex expert, but I dont think that the regex is the
> problem. You are using http.url instead of using http.host.
> And if im not totally wrong, you dont need the ~ to check the host, you
> can use ==.
>
> Change this:
> if (req.http.url ~ "admin.example.com$") {
> pipe;
> }
> To this:
> if (req.http.host == "admin.example.com") {
> pipe;
> }
>
> And this:
> if (req.http.Cookie && req.http.url ~ "admin.example.com$") {
> pipe;
> }
>
> To this:
> if (req.http.Cookie && req.http.host == "admin.example.com") {
> pipe;
> }
>
> Althought I do not know if you should pipe the cookies. I think its pass
> that would be used when cookies is set but Im not an expert, maybe im
> wrong.
>
> Cheers
> Erik
More information about the varnish-misc
mailing list