How to Install and configure Varnish in Ubuntu 16.04

August 5, 2017 1.6k views
LEMP Nginx WordPress Server Optimization Caching Ubuntu 16.04

I already install NGINX, PHP-FPM, MariaDB and Wordpress in Ubuntu 16.04. Also, I have Let's Encrypt SSL.

Now I want to install Varnish and configure it in the backend of NGINX since I used SSL all request from 443.

My current configuration is

User ==> Cloudflare ==> NGINX

how to configure varnish in following way

User ==> Cloudflare ==> NGINX ==>Varnish

Be the first one to answer this question.