This is a plesk onyx nginx conf template adaption of bcremer nginx configuration setup.
https://github.com/bcremer/shopware-with-nginx
- Added WebP Support - static files
- Added woff2 Support - cache
- Refactor nginx location configuration to match custom theme fonts - regex
- Plesk Onyx 17.8.11
- Ubuntu 18.04 LTS
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.
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.