Thanks a lot!
Working perfectly now!

It seems that Varnish 3 is slower than Varnish 2.1.5 (or even Varnish 2.0.6). (benchmarked with apachebench)
Could this be because of the little (test)load with limited resources (CPU/ram) on my testserver?
Will Varnish 3 be faster than v.2 when I deploy on a decent server? (dedicated dualcore / 4GB ram)


Mattias Geniar wrote:
When I use the code below (based on the templates at
    
https://github.com/mattiasgeniar/varnish-3.0-configuration-templates/tre
e/master/conf.d), Drupal 7 + Varnish 3 'almost' works.
  
Varnish is working perfectly (no backend calls, two Varnish timestamps
    
in the header). 
  
However, I can't log in in my Drupal site. Same behaviour with
    
directories which are protected by .htaccess. The logon screen keeps
popping up when I enter the correct credentials.

Add the following at the bottom of the vcl receive (it's in the
"default.vcl" file on github):

if (req.http.Authorization || req.http.Cookie) {
          # Not cacheable by default
          return (pass);
}

Without it, you are indeed likely to run into problems.

You may want to check the rest of the content in default.vcl.

Regards,
Mattias


  
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to