Site icon GetPageSpeed

Magento 2 Nginx Config for SSL termination & Varnish

đź“… Updated: October 18, 2020 (Originally published: July 15, 2016)

This configuration fixes some errors in the NGINX configuration for Varnish that is shipped by Magento 2 team.
To use it, place the file into /etc/nginx/sites-available/ and make sure to replace example.com with your own store domain.

Requirements

Take note of suggestions specified as comments in the file and make the appropriate action.

D

Danila Vershinin

Founder & Lead Engineer

NGINX configuration and optimizationLinux system administrationWeb performance engineering

10+ years NGINX experience • Maintainer of GetPageSpeed RPM repository • Contributor to open-source NGINX modules

Exit mobile version