The system uses ngx_http_gzip_module.
The ngx_http_gzip_module is a filter that compresses the response by the gzip method, which reduces the size of the transferred data by a factor of 2 or more
server {
gzip on;
`` gzip_disable "msie6";
gzip_types text/plain application/xml;
gzip_comp_level 5;
}
Directives (the value next to the directive is set by default by the panel):
gzip on - Enables gzip compression of the response.
gzip_disable "msie6" - Disables gzip compression for requests with "User-Agent" header fields that match the specified regular expressions. The special mask "msie6" corresponds to the regular expression "MSIE [4-6].", but works faster.
gzip_types "text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript" - Enables gzip compression for specified MIME types in addition to "text/html". Replies with the "text/html" type are always compressed.
To change the list of MIME-types you need: in the configuration file /usr/local/mgr5/etc/ispmgr.conf, create a variable path type named nginx-gzip-types and enter the desired MIME-types. For example:
path nginx-gzip-types text/plain text/css
If compression settings have already been made for the domain, applying the changes in gzip_types will require reloading the panel and then applying the changes to the WWW domain.
gzip_comp_level 1-9 - Sets the degree of gzip compression of the response. Valid values range from 1 to 9.
To enable GZIP compression it is necessary: in WWW-domain settings to enable the switch Configure compression, then select the compression level and save the form.
Additional information can be found on the ISP's official website.
If you have any difficulties in configuration or have any additional questions, you can always contact our support service via ticket system.