How to install Varnish cache server with Nginx on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org

The objective is to install and configure a Varnish Cache server with Nginx on Ubuntu 18.04 Bionic Beaver Linux. Varnish is a fast caching server which sits in front of any web server and serves previously cached pages, hence, improving the website's response time.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-varnish-cache-server-with-nginx-on-ubuntu-18-04-bionic-beaver-linux