Skip to content

plugware/plesk-onyx-custom-conf-template-nginx-shopware

Repository files navigation

plesk-onyx-custom-conf-template-nginx-shopware

This is a plesk onyx nginx conf template adaption of bcremer nginx configuration setup.

Reference: NGINX Shopware configuration by bcremer

https://github.com/bcremer/shopware-with-nginx

Customization

  • Added WebP Support - static files
  • Added woff2 Support - cache
  • Refactor nginx location configuration to match custom theme fonts - regex

Tested on

  • Plesk Onyx 17.8.11
  • Ubuntu 18.04 LTS

How to use

First of all: YOU NEED ROOT ACCESS
If you have for example a managed VPS or a Managed Server without root access you need to contact your hoster support for help.

cd /usr/local/psa/admin/conf/templates/
mkdir custom
cd ./custom
git clone https://github.com/plugware/plesk-onyx-custom-conf-template-nginx-shopware.git ./

In case you want to use wget or curl instead of git:

cd /tmp
wget -O - https://github.com/plugware/plesk-onyx-custom-conf-template-nginx-shopware/tarball/master | tar xz
curl -L https://github.com/plugware/plesk-onyx-custom-conf-template-nginx-shopware/tarball/master | tar xz
cd plugware-plesk-onyx-custom-conf-template-nginx-shopware-*
cp -r ./domain /usr/local/psa/admin/conf/templates/custom/

Templates placed in /usr/local/psa/admin/conf/templates/custom/ overrides templates in /usr/local/psa/admin/conf/templates/default/.

Of course the additional nginx directives can still be used.

Plesk panel - activate custom template

The custom template is triggered by Index Files and Proxy mode configuration under Apache & nginx Settings. Just add shopware.php and uncheck Proxy mode to activate custom template blocks.

Index Files config Index Files config

About

Custom Plesk nginx conf for Shopware usage with nginx no proxy mode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages