Knowledge Base
MilesWeb / Plesk FAQ

How to Enable gzip Compression for Nginx Per Site?

Approx. read time : 2 min

Generally, gzip compression isn’t enabled by Nginx for serving files. If CSS and Javascript files aren’t minified or pre-compressed, gzip compression is commonly used to reduce the filesize of these files. This guide will display the way to enable it per site for a Plesk 12.5 or Onyx based server.
Instructions

  1. Login to your Plesk server.
  2. From the left hand side, select the domain that you want to enable gzip for.
  3. Click on Apache and nginx settings as below:
  4. At the bottom, add the following to the “Additional nginx directives” field:
  5. In order to save, click on OK.

The working of gzip compression can be verified by using your browser’s debug tools or third party website such as GTMetrix.

Pallavi Godse
Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.