SSL and Varnish

Jim Hayter jhayter at
Tue Sep 7 16:14:53 CEST 2010

We run nginx to accept both SSL and non-SSL requests.  This allows me to
have some logic to block certain requests at the nginx level and also
for nginx to return a customized error page if varnishd is not running.
Nginx on passes all remaining traffic to varnishd which sits in front of
multiple web servers.

-----Original Message-----
From: varnish-misc-bounces at
[mailto:varnish-misc-bounces at] On Behalf Of Rob S
Sent: Tuesday, September 07, 2010 7:28 AM
To: varnish-misc at
Subject: SSL and Varnish

  If you've used SSL with varnish in production, can you share any 
wisdom on your configuration and approaches?

We've been happily using Varnish in production for just over a year, and

now want to use it for an SSL site so that we can use ESI, load 
balancing and other such facilities offered by Varnish.  I've searched 
over the Varnish website, and can't see any examples of a recommended 
SSL configuration.
provides some documentation, but I suspect there are other options.

I'll happily consolidate the answers into a coherent document for the 
website so that others can benefit in future.



varnish-misc mailing list
varnish-misc at

More information about the varnish-misc mailing list