{"id":5646,"date":"2022-01-14T06:53:48","date_gmt":"2022-01-14T12:53:48","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=5646"},"modified":"2026-01-23T06:26:08","modified_gmt":"2026-01-23T12:26:08","slug":"how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/","title":{"rendered":"How to Enable Apache Gzip Compression (mod_deflate) in DirectAdmin ?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/#how_to_check_gzip_compression_status\" >How to check Gzip Compression status?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/#enable_gzip_compression_mod_deflate\" >Enable Gzip Compression (mod_deflate)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/#conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>Gzip compresses the content before serving it to the requested client. Due to the compression of the files, its effectiveness accelerates the website performance to the next level. Learn, How to Enable Apache Gzip Compression (mod_deflate) in DirectAdmin ?<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"how_to_check_gzip_compression_status\"><\/span>How to check Gzip Compression status?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Just like for every other apache server, you can use the following command to check the Gzip compression (mod_deflate) status,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>httpd -M | grep deflate<\/strong><\/code><\/pre>\n\n\n\n<p>Result of the above command should look like this,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@host ~]# httpd -M | grep deflate\n<strong> deflate_module (static)<\/strong><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"enable_gzip_compression_mod_deflate\"><\/span>Enable Gzip Compression (mod_deflate)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>DirectAdmin doesn&#8217;t have a dedicated option to enable Gzip compression manually using the end-user GUI DirectAdmin control panel. To setup, the Gzip compression (mod_deflate), enter the following code in the .htaccess file,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># BEGIN DEFLATE COMPRESSION\n&lt;IfModule mod_deflate.c&gt;\n# Compress HTML, CSS, JavaScript, Text, XML and fonts\nAddOutputFilterByType DEFLATE application\/javascript\nAddOutputFilterByType DEFLATE application\/rss+xml\nAddOutputFilterByType DEFLATE application\/vnd.ms-fontobject\nAddOutputFilterByType DEFLATE application\/x-font\nAddOutputFilterByType DEFLATE application\/x-font-opentype\nAddOutputFilterByType DEFLATE application\/x-font-otf\nAddOutputFilterByType DEFLATE application\/x-font-truetype\nAddOutputFilterByType DEFLATE application\/x-font-ttf\nAddOutputFilterByType DEFLATE application\/x-javascript\nAddOutputFilterByType DEFLATE application\/xhtml+xml\nAddOutputFilterByType DEFLATE application\/xml\nAddOutputFilterByType DEFLATE font\/opentype\nAddOutputFilterByType DEFLATE font\/otf\nAddOutputFilterByType DEFLATE font\/ttf\nAddOutputFilterByType DEFLATE image\/svg+xml\nAddOutputFilterByType DEFLATE image\/x-icon\nAddOutputFilterByType DEFLATE text\/css\nAddOutputFilterByType DEFLATE text\/html\nAddOutputFilterByType DEFLATE text\/javascript\nAddOutputFilterByType DEFLATE text\/plain\nAddOutputFilterByType DEFLATE text\/xml\n&lt;\/IfModule&gt;\n# END DEFLATE COMPRESSION<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that we&#8217;ve gone over how to enable apache GZip compression (mod_deflate) on the DirectAdmin control panel. If you&#8217;re not able to track down whether the Gzip compression is enabled or not, refer to this article: <a target=\"_blank\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-check-whether-gzip-compression-is-working\/\" rel=\"noreferrer noopener\">How to Check Whether Gzip Compression is Working?<\/a>&nbsp;or get in touch with our support.<\/p>\n\n\n\n<p>KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you with requests should you need our assistance. You\u2019re not using KnownHost for the best webhosting experience? Well, why not? Check with&nbsp;<a href=\"https:\/\/www.knownhost.com\/contact\">our Sales team<\/a>&nbsp;to see what can&nbsp;<a href=\"https:\/\/www.knownhost.com\/\">KnownHost<\/a>&nbsp;do for you in improving your webhosting experience.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gzip compresses the content before serving it to the requested client. Due to the compression of the files, its effectiveness accelerates the website performance to the next level. Learn, How to Enable Apache Gzip Compression (mod_deflate) in DirectAdmin ? How to check Gzip Compression status? Just like for every other apache server, you can use [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[128,306,535],"class_list":["post-5646","post","type-post","status-publish","format-standard","hentry","category-directadmin","tag-directadmin","tag-gzip","tag-mod_deflate"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Enable Apache Gzip Compression (mod_deflate) in DirectAdmin | KnownHost<\/title>\n<meta name=\"description\" content=\"Learn how to enable Apache Gzip compression (mod_deflate) in DirectAdmin to compress HTML, CSS, JavaScript, and XML files. Improve page speed and performance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enable Apache Gzip Compression (mod_deflate) in DirectAdmin | KnownHost\" \/>\n<meta property=\"og:description\" content=\"Learn how to enable Apache Gzip compression (mod_deflate) in DirectAdmin to compress HTML, CSS, JavaScript, and XML files. Improve page speed and performance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-14T12:53:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-23T12:26:08+00:00\" \/>\n<meta name=\"author\" content=\"Somesh Z\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Somesh Z\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\\\/\"},\"author\":{\"name\":\"Somesh Z\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"headline\":\"How to Enable Apache Gzip Compression (mod_deflate) in DirectAdmin ?\",\"datePublished\":\"2022-01-14T12:53:48+00:00\",\"dateModified\":\"2026-01-23T12:26:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\\\/\"},\"wordCount\":244,\"keywords\":[\"directadmin\",\"gzip\",\"mod_deflate\"],\"articleSection\":[\"DirectAdmin\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\\\/\",\"name\":\"Enable Apache Gzip Compression (mod_deflate) in DirectAdmin | KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2022-01-14T12:53:48+00:00\",\"dateModified\":\"2026-01-23T12:26:08+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"description\":\"Learn how to enable Apache Gzip compression (mod_deflate) in DirectAdmin to compress HTML, CSS, JavaScript, and XML files. Improve page speed and performance.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enable Apache Gzip Compression (mod_deflate) in DirectAdmin ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\",\"name\":\"Somesh Z\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"caption\":\"Somesh Z\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Enable Apache Gzip Compression (mod_deflate) in DirectAdmin | KnownHost","description":"Learn how to enable Apache Gzip compression (mod_deflate) in DirectAdmin to compress HTML, CSS, JavaScript, and XML files. Improve page speed and performance.","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:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/","og_locale":"en_US","og_type":"article","og_title":"Enable Apache Gzip Compression (mod_deflate) in DirectAdmin | KnownHost","og_description":"Learn how to enable Apache Gzip compression (mod_deflate) in DirectAdmin to compress HTML, CSS, JavaScript, and XML files. Improve page speed and performance.","og_url":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/","og_site_name":"KnownHost","article_published_time":"2022-01-14T12:53:48+00:00","article_modified_time":"2026-01-23T12:26:08+00:00","author":"Somesh Z","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Somesh Z","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/"},"author":{"name":"Somesh Z","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"headline":"How to Enable Apache Gzip Compression (mod_deflate) in DirectAdmin ?","datePublished":"2022-01-14T12:53:48+00:00","dateModified":"2026-01-23T12:26:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/"},"wordCount":244,"keywords":["directadmin","gzip","mod_deflate"],"articleSection":["DirectAdmin"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/","url":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/","name":"Enable Apache Gzip Compression (mod_deflate) in DirectAdmin | KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2022-01-14T12:53:48+00:00","dateModified":"2026-01-23T12:26:08+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"description":"Learn how to enable Apache Gzip compression (mod_deflate) in DirectAdmin to compress HTML, CSS, JavaScript, and XML files. Improve page speed and performance.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-apache-gzip-compression-mod_deflate-in-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Enable Apache Gzip Compression (mod_deflate) in DirectAdmin ?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1","name":"Somesh Z","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","caption":"Somesh Z"}}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/5646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=5646"}],"version-history":[{"count":1,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/5646\/revisions"}],"predecessor-version":[{"id":8023,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/5646\/revisions\/8023"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=5646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=5646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=5646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}