How to enable Plesk gzip compression?

Pinterest LinkedIn Tumblr

Gzip compression helps the server to download websites faster.

It is therefore customary to enable gzip compression on web servers.

Therefore, we regularly receive requests from our customers to enable gzip compression on the server as part of our server management services.

Today we will see how our support engineers help our customers to enable gzip compression on Plesk and correct typical errors. Look at more info Azure Cloud Management.


Why do we need gzip compression?

First, let’s see why we need gzip compression.

Gzip (GNU-Zip) is free and open source file compression software. This is a method of compressing files for faster transmission over the network.

It is usually used to compress web pages on the server side. And that gives you such advantages,

  • -> Reduce the data size.
  • -> Saves space in the warehouse.
  • -> Increase the speed of data transmission.
  • -> Compression of streaming media on the Internet (video and audio content).

That’s why our specialist engineers always include compression in the loading gear on the construction site.

How does gzip compression work?

Let’s see how the compression works when you request a file. There are five important steps in this process.

1. When the server receives a request for a web page, it checks whether the browser supports gzip.

2. If this is the case, the server generates the page layout before applying gzip.

3. Gzip converts the markup into a compressed data stream that is then delivered to the user.

4. When a user receives compressed data, his browser decompresses it.

5. The user can now view the requested file without delay.

Now it’s time to discuss how we can make the gzip compression under Plesk possible.

Steps to ensure gzip compression

Let’s start with how our support engineers enable gzip compression on the Plesk server for the domain.

1. In Plesk, go to Domains > > Apache & Nginx Settings

2. In the area of additional Nginx guidelines, we add the following guidelines:

How to enable Plesk gzip compression?

3. Click OK.

We can now see the changes on the phpinfo() page below the domain. The part of the gzip module is also displayed.

Elements that do not work when compressing Plesk gzip

However, when dealing with the Plesk servers, our technical team often finds errors related to Gzip.

Although gzip compression is enabled in Plesk, we sometimes get a gzip error. Let’s see what steps we take to deal with this.

1. Parameter error

1. Initially, we guarantee that the Plesk server will support the Gzip module. However, on web servers such as Nginx, gzip compression is automatically enabled after installation with default settings.

2. Then we check the contents of the configuration file.

Here is the content of the /etc/nginx/conf.d/gzip.conf file on the server that is experiencing problems.

gzip off;
gzip_disable MSIE [1-6]…*SV1) ;
gzip_proxied any ;
gzip_types text/css text/plain application/x-javascript application/xml+rss application/javascript text/javascript image/x-icon image/bmp image/svg+xml application/x-httpd-php ;
gzip_vary on ;

2. From there we can unofficially identify the gzip. So to fix it, we turned it on.

3. In addition, our specialized engineers test the Nginx syntax before restarting the web server. If everything’s all right, you can see that:

nginx: Syntax of the configuration file /etc/nginx/nginx.conf ok
nginx : Configuration file /etc/nginx/nginx.conf Test successful

After the restart, the compression of the site started to work normally.

2. Gzip settings for static files

1. The second problem reported by our client – gzip does not work for static files on versions of Plesk Onyx.

2. So to solve the problem on Plesk Onyx, we have added the following parameters to the additional Nginx guidelines on their website.

How to enable Plesk gzip compression?

3. This solved the problem and the gzip compression clients worked fine.

We can enable Gzip compression to make websites faster].


In short, as the need for information increases, methods of delivering large amounts of data quickly and efficiently become increasingly relevant. Gzip compression can give any web service a cost-effective speed boost. Today we saw how our support engineers made gzip compression on Plesk possible to fix some bugs.enable gzip compression plesk windows,45 with enabled compression