{"id":27099,"date":"2022-11-23T10:51:27","date_gmt":"2022-11-23T10:51:27","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/?p=27099"},"modified":"2023-11-14T10:37:33","modified_gmt":"2023-11-14T10:37:33","slug":"how-to-enable-disable-gzip-compression-in-nginx-on-a-plesk-server","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/","title":{"rendered":"How to Enable\/Disable gzip compression in nginx on a Plesk Server"},"content":{"rendered":"<blockquote dir=\"ltr\" data-identifyelement=\"494\"><p><span style=\"font-weight: 400;\">Gzip compression is a crucial tool for optimizing web server performance. It reduces the size of data sent from your server to the user&#8217;s browser, resulting in faster loading times and improved website performance.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This article will guide you through the process of enabling and disabling Gzip compression in Nginx on a Plesk server, ensuring you have the flexibility to control this feature based on your website&#8217;s needs.<\/span><\/p><\/blockquote>\n<h2 dir=\"ltr\" style=\"text-align: center;\" data-identifyelement=\"499\"><span style=\"color: #000000;\" data-identifyelement=\"500\"><strong data-identifyelement=\"501\"><u>How to Enable<\/u><\/strong><\/span><\/h2>\n<p dir=\"ltr\" data-identifyelement=\"499\"><span dir=\"ltr\" data-identifyelement=\"500\"><u dir=\"ltr\"><\/u>\u00a0<\/span><\/p>\n<h4 dir=\"ltr\"><span style=\"color: #000000;\"><strong>Step 1.<\/strong><strong dir=\"ltr\"> Log into Plesk.<\/strong><\/span><strong dir=\"ltr\"><span style=\"color: #000000;\">\u00a0<\/span><\/strong><\/h4>\n<h4 dir=\"ltr\"><span style=\"color: #000000;\"><strong dir=\"ltr\">Step 2<\/strong><strong dir=\"ltr\">. Go to Domains&gt; Example.com&gt; Hosting &amp; DNS&gt; Apache &amp;<\/strong><strong dir=\"ltr\">\u00a0<\/strong><strong dir=\"ltr\">nginx settings.<\/strong><\/span><\/h4>\n<h4 dir=\"ltr\"><span style=\"color: #000000;\"><strong dir=\"ltr\">Step 3<\/strong><strong dir=\"ltr\">. \u00a0Add the following directories to the Additional nginx directories field:\u00a0<\/strong><\/span><\/h4>\n<pre dir=\"ltr\"><strong dir=\"ltr\">gzip on;<\/strong>\n<strong dir=\"ltr\">gzip_disable \"MSIE [1-6]\\\\.(?!.*SV1)\";<\/strong>\n<strong dir=\"ltr\">gzip_proxied any;<\/strong>\n<strong dir=\"ltr\">gzip_comp_level 5;<\/strong>\n<strong dir=\"ltr\">gzip_types text\/plain text\/css application\/javascript application\/x-javascript text\/xml application\/xml application\/rss+xml text\/javascript image\/x-icon image\/bmp image\/svg+xml;<\/strong>\n<strong dir=\"ltr\">gzip_vary on;<\/strong><\/pre>\n<h4 dir=\"ltr\" data-identifyelement=\"510\"><strong><span dir=\"ltr\" style=\"color: #000000;\">Note:\u00a0<\/span><span dir=\"ltr\"><span style=\"color: #000000;\">This is an example. If needed, add other file types in the<\/span>\u00a0<span style=\"color: #ff6600;\">gzip_types<\/span>\u00a0<span style=\"color: #000000;\">section, E.g:<\/span>\u00a0<span style=\"color: #ff6600;\">application\/javascript, application\/js<\/span>\u00a0<span style=\"color: #000000;\">etc. The Full list of available types \u00a0can be found on a server in the<\/span> <span style=\"color: #000000;\">files<\/span>\u00a0<span style=\"color: #ff6600;\">\/etc\/nginx\/mime.types<\/span><\/span><\/strong><\/h4>\n<h4 dir=\"ltr\" data-identifyelement=\"510\"><span style=\"color: #000000;\"><strong>Step 4.\u00a0Apply the changes<\/strong><\/span><\/h4>\n<h2 dir=\"ltr\" style=\"text-align: center;\" data-identifyelement=\"510\"><span style=\"color: #000000;\"><strong><span dir=\"ltr\"><u>How to Disable<\/u><\/span><\/strong><\/span><\/h2>\n<p dir=\"ltr\" style=\"text-align: center;\" data-identifyelement=\"510\"><span dir=\"ltr\" style=\"color: #000000;\"><strong dir=\"ltr\">Disabling gzip compression for a domain in Plesk<\/strong><\/span><\/p>\n<h4 dir=\"ltr\" data-identifyelement=\"510\"><span style=\"color: #000000;\"><span dir=\"ltr\"><strong dir=\"ltr\">Step 1<\/strong><\/span><span dir=\"ltr\"><strong dir=\"ltr\">. Log in to Plesk.\u00a0<\/strong><\/span><\/span><\/h4>\n<h4 dir=\"ltr\" data-identifyelement=\"510\"><span style=\"color: #000000;\"><span dir=\"ltr\"><strong dir=\"ltr\">Step 2.<\/strong><\/span><span dir=\"ltr\"><strong dir=\"ltr\">\u00a0Go to Domains&gt; example.com&gt; Hosting &amp; DNS&gt; Apache &amp; nginx settings.\u00a0<\/strong><\/span><\/span><\/h4>\n<h4><span dir=\"ltr\" style=\"color: #000000;\"><strong dir=\"ltr\">Note: To disable gzip compression for a domain \/ subdomain that does not exist in Plesk (e.g hostname), create it first.\u00a0<\/strong><\/span><\/h4>\n<h4 dir=\"ltr\" data-identifyelement=\"510\"><span style=\"color: #000000;\"><span dir=\"ltr\"><strong dir=\"ltr\">Step 3<\/strong><\/span><span dir=\"ltr\"><strong dir=\"ltr\">. Add the following directive to the Additional nginx directives field.\u00a0<\/strong><\/span><\/span><\/h4>\n<pre dir=\"ltr\" data-identifyelement=\"510\"><span dir=\"ltr\"><strong dir=\"ltr\">gzip off;<\/strong><\/span><\/pre>\n<h4 dir=\"ltr\" data-identifyelement=\"510\"><span style=\"color: #000000;\"><strong dir=\"ltr\">Step 4.\u00a0<\/strong><strong dir=\"ltr\">Click apply to save the changes\u00a0<\/strong><\/span><\/h4>\n<p><strong>Frequently Asked Questions:<\/strong><\/p>\n<p><b>What is Gzip compression, and why is it important for a web server?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0Gzip compression is a method used to reduce the size of data transferred between a web server and a user&#8217;s browser. It is crucial for web servers because it significantly improves website performance by reducing page loading times. This, in turn, leads to a better user experience and can positively impact search engine rankings.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gzip compression is a crucial tool for optimizing web server performance. It reduces the size of data sent from your server to the user&#8217;s browser, resulting in faster loading times and improved website performance. This article will guide you through the process of enabling and disabling Gzip compression in Nginx&#8230;<\/p>\n","protected":false},"author":21,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[1178],"ht-kb-tag":[214,296,355,454,480,510,674,747,898],"class_list":["post-27099","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-servers","ht_kb_tag-compression","ht_kb_tag-disable","ht_kb_tag-enable","ht_kb_tag-gzip","ht_kb_tag-how-to","ht_kb_tag-in","ht_kb_tag-nginx","ht_kb_tag-plesk","ht_kb_tag-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Enable\/Disable Qzip Compression on Plesk Server<\/title>\n<meta name=\"description\" content=\"This article will show you how to enable \/ disable Gzip compression in nginx on Plesk Server 1-grid Knowledge Base\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Enable\/Disable Qzip Compression on Plesk Server\" \/>\n<meta property=\"og:description\" content=\"This article will show you how to enable \/ disable Gzip compression in nginx on Plesk Server 1-grid Knowledge Base\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-14T10:37:33+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/\",\"name\":\"How To Enable\/Disable Qzip Compression on Plesk Server\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2022-11-23T10:51:27+00:00\",\"dateModified\":\"2023-11-14T10:37:33+00:00\",\"description\":\"This article will show you how to enable \/ disable Gzip compression in nginx on Plesk Server 1-grid Knowledge Base\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enable\/Disable gzip compression in nginx on a Plesk Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Enable\/Disable Qzip Compression on Plesk Server","description":"This article will show you how to enable \/ disable Gzip compression in nginx on Plesk Server 1-grid Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/","og_locale":"en_US","og_type":"article","og_title":"How To Enable\/Disable Qzip Compression on Plesk Server","og_description":"This article will show you how to enable \/ disable Gzip compression in nginx on Plesk Server 1-grid Knowledge Base","og_url":"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2023-11-14T10:37:33+00:00","twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/","url":"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/","name":"How To Enable\/Disable Qzip Compression on Plesk Server","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2022-11-23T10:51:27+00:00","dateModified":"2023-11-14T10:37:33+00:00","description":"This article will show you how to enable \/ disable Gzip compression in nginx on Plesk Server 1-grid Knowledge Base","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-enabledisable-gzip-compression-in-nginx-on-a-plesk-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"How to Enable\/Disable gzip compression in nginx on a Plesk Server"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/27099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=27099"}],"version-history":[{"count":6,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/27099\/revisions"}],"predecessor-version":[{"id":33061,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/27099\/revisions\/33061"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=27099"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=27099"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=27099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}