A few months ago I read about how great Varnish is for speeding up websites and I wanted to give it a try. The first tutorial I found worked really well, except for one very important detail: HTTPs Traffic. I have no idea why, but it wasn't easy for me to find a good example of how to use Varnish + Nginx + SSL.
After reading several articles and putting it all together, I came up with a configuration that works well enough for me. It may not be the best, but it works: I can speed up my sites, I can pass the client IP to the backend server for statistics or ACL purposes, and I can bypass the Varnish cache for certain URLs if necessary.
Read more about it here.