Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.86 KB

File metadata and controls

57 lines (43 loc) · 1.86 KB

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