yumupgrades for production use, this is the repository for you.
Active subscription is required.
Use our up-to-date, bug-free, time tested, and proactively developed version of Varnish VCL for Magento 2.
The supported Varnish version is 4.x.
SSL offload header
Magento 2 changed the default SSL offload header. Version 2.0 used
SSL_OFFLOADED while the latter use
If you were upgrading versions, you might still have the old value. To ensure the correct value, set it via CLI:
bin/magento config:set --lock-config web/secure/offloader_header X-Forwarded-Proto
This will preserve the correct value in the file
app/etc/config.php as opposed to the database.
Correct Magento/NGINX configuration
Magento must be configured with
pub directory of your Magento as the
root directive in NGINX.
Subsequently, the base URL should not include
/pub/ at all.
This is the most secure setup, as only files under
pub will be web-accessible.