varnish

How to do https in varnish?


I need accept https from client and my backend is also https.

How can listen HTTPS in varnish and forward request to backend in HTTPS?

VARNISH_LISTEN_PORT=443
# how to add SSL certs?

Solution

  • Varnish, at least in the open source version, does not support HTTPS. Varnish Software released Hitch a while ago, which can be used to terminate HTTPS in front of a Varnish caching proxy. Many setups that I have seen also use nginx for SSL termination with varnish as backend.

    I just found out that the commercial product Varnish Plus in fact supports TLS/SSL.