Varnish Auth Sessions (vBulletin)

Scott McCullough zredsox at gmail.com
Wed Jan 7 20:03:41 CET 2009


I run a vbulletin site with a lighttpd server and have been trying to
configure varnish as a front end to cache and serve dynamic pages.

I have looked through the mailing list and do not see any vBulletin specific
implementation advice. Doing google searches on the web leads me to some
information (mostly about plone) but with my limited skill set I have yet to
find a workable solution.

( I have successfully been able to get it to just cache images, css and
javascript.)

However, It would seem I am only able to get varnish to work in two modes
when it comes to php pages: Cache Everything, or Cache Nothing

I have tried using both:

sub vcl_recv {

     if (req.http.Authenticate || req.http.Authorization) {
             pass;
  }
}

and

sub vcl_fetch {

      if (req.http.Authorization && !obj.http.Cache-Control ~ "public") {
      pass;

      }
}

...but it still caches authenticated sessions and all the personalized page
portions that come with those sessions.


As an anonymous user heading to my site you are immediately presented with
the cookies - bblastvisit, bblastactivity, _utma, utmb, _utmc, utmcsr (and
Ad cookies; google analytics cookies) - so everyone gets a cookie for
everything but there are no special cookies for logged in users (unless they
choose persistent login which would add bbpassword and bbuserid.)

I have played around with:

unset req.http.Cookie;

...but I don't properly grasp how to use it in conjunction with the cookies
in play.



Any help or redirection would be appreciated.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090107/042d9da3/attachment-0002.html>


More information about the varnish-misc mailing list