GitPedia

Shopware with nginx

Running shopware using NGINX

From bcremer·Updated November 26, 2025·View on GitHub·

This is an example configuration for running [Shopware](https://github.com/shopware/shopware) using [nginx](http://nginx.org). Which is a high-performance non-blocking HTTP server. The project is distributed under the BSD 2-Clause "Simplified" License license, first published in 2013. Key topics include: nginx, shopware.

Nginx configuration for running Shopware

This is an example configuration for running Shopware using
nginx. Which is a high-performance non-blocking HTTP server.

This configuration is heavily inspired by perusio's drupal-configuration.

Warning

Please only use nginx if you know what you are doing. Shopware AG provides no support for running nginx as appserver.
Also note that Shopware will not run faster with nginx. A properly configured apache webserver is in most cases as fast as nginx.

Compatibility

This configuration is tested with Shopware 5.1 or later.

Installation

  1. Move the old /etc/nginx directory to /etc/nginx.old.

  2. Clone the git repository from github:

    git clone https://github.com/bcremer/shopware-with-nginx.git /etc/nginx
    
  3. Setup the PHP-FPM upstream in conf.d/upstream.conf

  4. Edit or copy the sites-available/example.com.conf configuration file to suit your requirements.

  5. Enable your site configuration

    ln -s ../sites-available/example.com.conf /etc/nginx/sites-enabled/
    
  6. Reload nginx

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from bcremer/shopware-with-nginx via the GitHub API.Last fetched: 6/21/2026