This article will show you how to enable / disable Gzip compression in nginx on Plesk Server
How to Enable
Step 1. Log into Plesk.
Step 2. Go to Domains> Example.com> Hosting & DNS> Apache & nginx settings.
Step 3. Add the following directories to the Additional nginx directories field:
Step 4. Apply the changes
How to Disable
Disabling gzip compression for a domain in Plesk
Step 1. Log in to Plesk.
Step 2. Go to Domains> example.com> Hosting & DNS> Apache & nginx settings.
Note: To disable gzip compression for a domain / subdomain that does not exist in Plesk (e.g hostname), create it first.
Step 3. Add the following directive to the Additional nginx directives field.