{"id":3769,"date":"2018-01-12T00:56:11","date_gmt":"2018-01-12T00:56:11","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3769"},"modified":"2018-01-12T00:56:11","modified_gmt":"2018-01-12T00:56:11","slug":"add-gzip-plesks-server","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2018\/01\/12\/add-gzip-plesks-server\/","title":{"rendered":"Add Gzip to Plesk Server"},"content":{"rendered":"<p>Instructions<br \/>\nLogin to your Plesk server.<br \/>\nSelect the domain you wish to enable gzip for from the left hand side.<br \/>\nClick in Apache and nginx settings:<br \/>\n<a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2018\/01\/nginx-enable-gzip-per-domain.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3770 size-full\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2018\/01\/nginx-enable-gzip-per-domain.png\" alt=\"\" width=\"796\" height=\"529\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/01\/nginx-enable-gzip-per-domain.png 796w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/01\/nginx-enable-gzip-per-domain-300x199.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/01\/nginx-enable-gzip-per-domain-768x510.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/a><\/p>\n<p>Down the bottom, add the following to the &#8220;Additional nginx directives&#8221; field:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ngzip on;\ngzip_disable &quot;MSIE &#x5B;1-6]\\.(?!.*SV1)&quot;;\ngzip_proxied any;\ngzip_types text\/plain text\/css application\/x-javascript application\/javascript text\/xml application\/xml application\/xml+rss text\/javascript image\/x-icon image\/bmp image\/svg+xml;\ngzip_vary on;\n\n<\/pre>\n<p>Click OK to save.<br \/>\nVerify with GTMetrix.com<\/p>\n<p>Another way is to set up deflate.<\/p>\n<p>First you need to check the module mod_deflate is enabled on the server.<\/p>\n<p>In plesk:<br \/>\n<a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2018\/01\/deflate.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2018\/01\/deflate-1024x825.png\" alt=\"\" width=\"1024\" height=\"825\" class=\"alignnone size-large wp-image-4766\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/01\/deflate-1024x825.png 1024w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/01\/deflate-300x242.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/01\/deflate-768x619.png 768w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/01\/deflate.png 1132w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Or, in ssh:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n \n# httpd -M |grep deflate\n\n<\/pre>\n<p>Then you need to create the file \/etc\/httpd\/conf.d\/deflate.conf<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# vim \/etc\/httpd\/conf.d\/deflate.conf\n\n<\/pre>\n<p>and add the following into it.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n \n&lt;ifmodule mod_deflate.c&gt;\nAddOutputFilterByType DEFLATE text\/html text\/plain text\/xml text\/css text\/javascript application\/javascript\nDeflateCompressionLevel 8\n&lt;\/ifmodule&gt;\n\n<\/pre>\n<p>Restart Apache<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n\/etc\/init.d\/httpd restart\n\n\n<\/pre>\n<p>Chech here &#8211; https:\/\/checkgzipcompression.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instructions Login to your Plesk server. Select the domain you wish to enable gzip for from the left hand side. Click in Apache and nginx settings: Down the bottom, add the following to the &#8220;Additional nginx directives&#8221; field: gzip on; gzip_disable &quot;MSIE &#x5B;1-6]\\.(?!.*SV1)&quot;; gzip_proxied any; gzip_types text\/plain text\/css application\/x-javascript application\/javascript text\/xml application\/xml application\/xml+rss text\/javascript image\/x-icon &#8230; <a title=\"Add Gzip to Plesk Server\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2018\/01\/12\/add-gzip-plesks-server\/\" aria-label=\"Read more about Add Gzip to Plesk Server\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,86],"tags":[],"class_list":["post-3769","post","type-post","status-publish","format-standard","hentry","category-administration","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3769"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3769\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}