Installing on FreeBSD#

From package#

FreeBSD offers Varnish Cache pre-packaged:

pkg install varnish7

From ports#

The FreeBSD packages are built out of the “ports” tree, and you can install varnish directly from ports if you prefer, for instance to get a newer version of Varnish than the current set of prebuilt packages provide:

cd /usr/ports/www/varnish7
make all install clean