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.<br><br>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.<br>
<br>( I have successfully been able to get it to just cache images, css and javascript.)<br><br>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 <br>
<br>I have tried using both:<br><br>sub vcl_recv {<br><br> if (req.http.Authenticate || req.http.Authorization) {<br> pass;<br> }<br>}<br><br>and<br><br>sub vcl_fetch {<br><br> if (req.http.Authorization && !obj.http.Cache-Control ~ "public") {<br>
pass;<br> <br> }<br>}<br><br>...but it still caches authenticated sessions and all the personalized page portions that come with those sessions.<br><br><br>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.)<br>
<br>I have played around with:<br><br>unset req.http.Cookie;<br><br>...but I don't properly grasp how to use it in conjunction with the cookies in play. <br><br><br><br>Any help or redirection would be appreciated.<br>
<br>Thanks.<br><br><br>