Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm having some troubles configuring the default.vcl of Varnish 3.0.3 to allow login to my website via Facebook Connect. The facebook api is correctly configured, but it appears my site is not 'allowing' the login, despite the visitor being returned from facebook after 'signing in'. Registration is successful and being recorded on my database.

Can somebody please help me configure my default.vcl? I've spent days trying to find the information to help me on the internet, but I

  1. I'm not too familiar with Varnish and
  2. there's not a lot of information currently out there.

The closest I can get to a solution is: http://drupal.org/node/1196916#31 (but that is obviously geared towards Drupal cookie handling).

My varnish config: http://pastebin.com/LWGRey8e

Currently I'm using the WP-FB AutoConnect wordpress plugin and have contacted the plugin author but he has never heard of Varnish.

Other details:

  • Site URL: livefeeedietravelling (dot com)
  • Varnish: 3.0.3
  • Wordpress Version: 3.5
  • Server: nginx/1.2.6 (with APC)
share|improve this question
Can you verify a cache miss on Varnish's side after logging in? If you have not added the header to identify this, take a look at stackoverflow.com/questions/9341144/… and copy his vcl_fetch() function. –  Taylor Jasko Jan 5 '13 at 1:23
@Taylor-Jasko - Hi Taylor, thanks for the info. I've input the vcl_fetch() function from provided link but still not having any success. My new default.vcl can be seen at pastebin.com/BxKcCvsU. –  Paul Thomson Jan 5 '13 at 16:48
I'm not 100% on how to verify a cache miss? The results of varnishtop -i txheader can be found here: pastebin.com/LbguNcFs varnishtop -i txurl results here: pastebin.com/BWrQRXgJ I hope that can help clarify a few things. Again, many thanks for your help. –  Paul Thomson Jan 5 '13 at 16:59
varnishtop -i txheader might be giving you some weird results. It showed up in curl just fine for me. drop.taylorjasko.com/I6mg/4KY1ErM2 - Try using Chrome's web inspector and viewing the results there. :) –  Taylor Jasko Jan 5 '13 at 22:09
@Taylor-Jasko - Thanks for the info Taylor, but honestly, I don't really know what it is I'm looking for? Neither do I know how to get a fix... :-s Was hoping it would be an 'add this line and it will work' job, you up for a little freelance task or know anyone who would be?? Thanks for your help though, really appreciate it! –  Paul Thomson Jan 5 '13 at 22:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.