Skip to main content

Magento / NGINX / Varnish

Magento 2 Nginx Config for SSL termination & Varnish

by , , revisited on


We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

📅 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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.