Nginx configuration for Magento 2

Best available Nginx configuration for Magento 2, Magento 2 supports nginx, Install nginx instead of apache web server, Switching From Apache To Nginx

Get it from GitHub See demo webshop

Easy Customization
Clone github repository and change configuration the way you need it.
Super Fast
Extremely fast, no lags. Ready for heavy load.
Save Money
Ready for production. Plug-n-Play. Do not waste time for debug or research.
VPS,Dedicated or Cloud
Perfectly fits any server or infrastructure. Run single server or multiple servers.
Proven Technology
Built from manuals and magento 2 specifications. Completely tested and used by everyone.
100% Satisfaction
Whether it's a developer or an ordinary user - everything is simple and easy to understand.

Nginx https for Magento 2

Best nginx configuration for improved security and performance. Enabled HTTP/2, ,

    ##  SSL global settings
    ssl_session_cache   shared:SSL:45m;
    ssl_session_timeout   15m;
    ssl_protocols   TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers   on;
    ssl_dhparam   /etc/ssl/certs/dhparams.pem;
    ssl_ecdh_curve   secp384r1;
    ssl_buffer_size   4k;
    ssl_stapling   on;
    ssl_trusted_certificate	/etc/letsencrypt/live/;


    ## specific security and compatibility headers
    add_header X-Processing-Time $request_time always;
    add_header X-Request-ID $request_id always;
    add_header Strict-Transport-Security $hsts_header always;
    add_header X-UA-Compatible "IE=Edge,chrome=1";
    add_header Link "<$scheme://$http_host$request_uri>; rel=\"canonical\"" always;

PageSpeed optimization module for Nginx

ngx_pagespeed speeds up your site and reduces page load time by automatically applying web performance best practices to pages and associated assets (CSS, JavaScript, images) without requiring you to modify your existing content or workflow.


Magento 2 installation on LEMP stack

Nginx config for Magento 2, Magento 2 CentOS nginx installation, Magento 2 migration, migrate from Apache to Nginx, Magento commerce, magento 2 demo

Get it from GitHub See demo webshop