Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.42 KB

varnish.md

File metadata and controls

35 lines (26 loc) · 1.42 KB

eZ Platform Varnish configuration

Prerequisites

  • A working Varnish 4.1 and higher setup with xkey module installed
    • Varnish Plus comes with xkey out of the box and can also be used.

Recommended VCL base files

For Varnish to work properly with eZ, you'll need to use the provided configuration:

Note: Http cache management is done with the help of FOSHttpCacheBundle. One may need to tweak their VCL further on according to FOSHttpCache documentation in order to use features supported by it.

Example installation on Debian/Ubuntu:

Starting with Debian 9 and Ubuntu 16.10 installation of xkey VMOD is greatly simplified as new varnish-modules package now exists.

Install:

# If you haven't updated package meta info in a while
apt-get update -q -y

# Install varnish and varnish-modules
# optionally: make sure we have ca-certificates to be able to skip optional dependencies
apt-get install -q -y --force-yes --no-install-recommends ca-certificates varnish-modules varnish

You can now start Varnish with flag to use your customized version of "eZ Platform optimized VCL" above.