Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.78 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.78 KB

eZ Platform Varnish configuration

Prerequisites

  • A working Varnish 4.1 and higher setup with xkey module installed
    • As of eZ Platform 2.5LTS the requirement is Varnish 5.1 (6.0LTS recommended and what we mainly test against)
  • 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:

For tuning the VCL further to you needs, see the following relevant examples:

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.