{"id":9816,"date":"2025-10-31T06:19:49","date_gmt":"2025-10-31T06:19:49","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=9816"},"modified":"2025-10-31T06:56:25","modified_gmt":"2025-10-31T06:56:25","slug":"enable-gzip-compression-apache","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/","title":{"rendered":"How to Enable GZIP Compression in Apache Server"},"content":{"rendered":"\n<p>Apache is a popular web server used by millions of high-traffic websites and blogs. As our site gains traffic, it tends to slow down. In such cases, often, system administrators need to improve website speed and reduce network bandwidth. Enabling data compression in Apache web server is a simple yet powerful way to do this. In this article, we will learn how to enable GZIP compression in Apache server.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey 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: #999;color:#999\" 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: #999;color:#999\" 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 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#What_is_GZIP_Compression_in_Apache_server\" >What is GZIP Compression in Apache server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#Why_Enable_GZIP_Compression_in_Apache\" >Why Enable GZIP Compression in Apache<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#1_Faster_Page_Load_Times\" >1. Faster Page Load Times<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#2_Reduced_Bandwidth\" >2. Reduced Bandwidth<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#3_Better_User_Experience\" >3. Better User Experience<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#How_to_Enable_GZIP_Compression_in_Apache_Server\" >How to Enable GZIP Compression in Apache Server<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#RedhatCentOS\" >Redhat\/CentOS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#UbuntuDebian\" >Ubuntu\/Debian<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#How_to_Apply_GZIP_Compression_in_Apache\" >How to Apply GZIP Compression in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#How_to_Disable_GZIP_Compression_in_Apache\" >How to Disable GZIP Compression in Apache<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#1_Disable_GZIP_Compression_in_Ubuntu\" >1. Disable GZIP Compression in Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#2_Disable_GZIP_Compression_in_CentOSRHEL\" >2. Disable GZIP Compression in CentOS\/RHEL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#3_Disable_GZIP_for_Specific_Files_Folders\" >3. Disable GZIP for Specific Files &amp; Folders<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#4_Disable_for_Specific_Virtual_Hosts\" >4. Disable for Specific Virtual Hosts<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_GZIP_Compression_in_Apache_server\"><\/span>What is GZIP Compression in Apache server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Typically, when a web browser requests a URL, its response page is directly served by web server, as it is. These days, most web pages are content heavy with many images, files, etc. This can slow down your web page speed and also increase network bandwidth. It results in poor user experience and increase data costs and server processing. <\/p>\n\n\n\n<p>This can be avoided by enabling data compression in web servers. When you enable it, then the server will compress the response data before sending it to client web browser. It also specifies the compression algorithm used for this purpose, as a response header. When the browser receives such a response, it immediately uncompresses the data before rendering the web page. This results in reduced data consumption and server resources, and also improves website speed, since the amount of data transferred is reduced. This whole thing completely occurs between the server and client browser and users do not need to do anything. All you need to do is enable data compression at the web server.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Enable_GZIP_Compression_in_Apache\"><\/span>Why Enable GZIP Compression in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Enabling GZIP compression offers several advantages such as :<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Faster_Page_Load_Times\"><\/span>1. Faster Page Load Times<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When you enable data compression in Apache server, it reduces the size of data transferred between server and client browser. This automatically increases web site speed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Reduced_Bandwidth\"><\/span>2. Reduced Bandwidth<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Compressing data saves money for both website owners as well as users. It reduces the amount of outgoing data from web server, as well as incoming data to users. This also saves up server resources since it needs to spend less time sending response data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Better_User_Experience\"><\/span>3. Better User Experience<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The end result is that your website appears a lot faster, even on mobile devices. This improves user experience along with better engagement and bounce rates.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Enable_GZIP_Compression_in_Apache_Server\"><\/span>How to Enable GZIP Compression in Apache Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>GZIP compression is managed by mod_deflate in Apache server. It is generally enabled by default. But sometimes that may not be the case. Here are the steps to enable GZIP compression in Apache server by enabling this module.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"RedhatCentOS\"><\/span>Redhat\/CentOS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In Redhat\/CentOS systems, open Apache configuration file in text editor. It is generally \/etc\/httpd\/conf\/httpd.conf. Add the following lines to this file to enable mod_deflate module.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">LoadModule deflate_module modules\/mod_deflate.so<br>LoadModule filter_module modules\/mod_filter.so<\/pre>\n\n\n\n<p>Save and close the file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"UbuntuDebian\"><\/span>Ubuntu\/Debian<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In Ubuntu\/Debian systems, run the following command to enable mod_deflate.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo a2enmod deflate<\/pre>\n\n\n\n<p>In both cases, restart Apache server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo service apache2 restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Apply_GZIP_Compression_in_Apache\"><\/span>How to Apply GZIP Compression in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The above methods apply gzip compression to all files whether it is CSS, JS, HTML, images, etc. Sometimes, you may want to apply gzip compression only for specific file types such as CSS, JS.<\/p>\n\n\n\n<p>In this case, just customize and add the following code in httpd.conf file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">    &lt;IfModule mod_deflate.c&gt;<br>        # Compress HTML, CSS, JavaScript, <br>        AddOutputFilterByType DEFLATE text\/html<br>        AddOutputFilterByType DEFLATE text\/css<br>        AddOutputFilterByType DEFLATE application\/javascript<br>        AddOutputFilterByType DEFLATE text\/javascript<br><br><br>        # Avoid compressing already compressed files like images, videos, etc.<br>        SetEnvIfNoCase Request_URI \\<br>        \\.(?:gif|jpe?g|png|rar|zip|exe|flv|mov|wma|wmv|avi|mp4|mp3|ogg|webp|pdf)$ no-gzip dont-vary<br>    &lt;\/IfModule&gt;<\/pre>\n\n\n\n<p>In the above code, we use AddOutputFilterByType directive to specifically compress file types. We have specified file types for JS, CSS and HTML. We have also avoided compressing file types that are already compressed, such as MP3 files. You can customize this code as per your requirement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Disable_GZIP_Compression_in_Apache\"><\/span>How to Disable GZIP Compression in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Sometimes, if you find that the data compression on your web server is not working properly, then you may need to temporarily disable it to fix the problem. There are a several ways to disable GZIP compression in Apache<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Disable_GZIP_Compression_in_Ubuntu\"><\/span>1. Disable GZIP Compression in Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you want to completely disable GZIP compression across your entire Apache installation, then just run the following terminal commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo a2dismod deflate<br>sudo systemctl restart apache2<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Disable_GZIP_Compression_in_CentOSRHEL\"><\/span>2. Disable GZIP Compression in CentOS\/RHEL<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you want to disable GZIP Compression in CentOS\/RHEL then open Apache Configuration File and comment the following line by adding &#8216;#&#8217; at its beginning. It will disable mod_deflate module.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#LoadModule deflate_module modules\/mod_deflate.so<\/pre>\n\n\n\n<p>Restart Apache server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo service apache2 restart<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Disable_GZIP_for_Specific_Files_Folders\"><\/span>3. Disable GZIP for Specific Files &amp; Folders<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can also disable GZIP compression for specific files and folders, using .htaccess file or &lt;Directory&gt; tag of virtual host file. Here is a code snippet to disable GZIP compression for .js and .css files.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">    &lt;IfModule mod_headers.c&gt;<br>        &lt;FilesMatch \"\\.(js|css)$\"&gt;  # Adjust file extensions as needed<br>            SetEnv no-gzip 1<br>            SetEnv dont-vary 1<br>        &lt;\/FilesMatch&gt;<br>    &lt;\/IfModule&gt;<\/pre>\n\n\n\n<p>In the above code, we first check if mod_headers is enabled or not. If so, then we further check the file extension. For JS and CSS files, we set environment variable no-gzip to 1. This will instruct GZIP module to skip compression of JS and CSS files. Place the above code in .htaccess file or within the Directory tag in virtual host file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Disable_for_Specific_Virtual_Hosts\"><\/span>4. Disable for Specific Virtual Hosts<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you only want to disable gzip for a specific virtual host, then open the virtual host configuration file and add the no-zip environment variable as shown inside VirtualHost tag.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;<br>    ServerName yourdomain.com<br>    ...<br><strong>    SetEnv no-gzip 1<\/strong><br>&lt;\/VirtualHost&gt;<\/pre>\n\n\n\n<p><\/p>\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>In this article, we have learnt how to enable GZIP compression for Apache web server. We have learnt how to enable gzip in RHEL\/CentOS as well as Ubuntu\/Debian systems. We have also learnt how to apply GZIP compression for specific file types. Lastly, we also learnt how to disable GZIP compression.<\/p>\n\n\n\n<p>Enabling Gzip compression will improve your website speed and reduce data bandwidth. This will reduce both your server costs as well as data costs. Depending on your Apache installation, you can use any of the above steps. Please note, most web servers support several compression algorithms such as gzip, bzip2, <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Glossary\/Brotli_compression\">brotli<\/a>, etc. They are also supported by popular client browsers like Chrome, Firefox, Safari, etc. You can use any of them as per your requirement.<\/p>\n\n\n\n<p>Also read:<br><a href=\"https:\/\/ubiq.co\/tech-blog\/upgrade-apache-version-centos-redhat-linux\/\">How to Upgrade Apache Server in CentOS\/Redhat<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/block-image-hotlinking-allow-google\/\">How to Block Image Hotlinking in Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-change-port-number-in-apache-in-ubuntu\/\">How to Change Port Number in Apache<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enabling data compression in Apache server improves site speed. Here is how to enable GZIP compression in Apache server.<\/p>\n","protected":false},"author":1,"featured_media":9836,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[37],"class_list":["post-9816","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-gzip-compression"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Enable GZIP Compression in Apache Server - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Enabling data compression in Apache server improves site speed. Here is how to enable GZIP compression in Apache server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Enable GZIP Compression in Apache Server - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Enabling data compression in Apache server improves site speed. Here is how to enable GZIP compression in Apache server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-31T06:19:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-31T06:56:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/10\/enable-gzip-compression-apache.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"301\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Enable GZIP Compression in Apache Server\",\"datePublished\":\"2025-10-31T06:19:49+00:00\",\"dateModified\":\"2025-10-31T06:56:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/\"},\"wordCount\":999,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1\",\"keywords\":[\"gzip compression\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/\",\"name\":\"How to Enable GZIP Compression in Apache Server - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1\",\"datePublished\":\"2025-10-31T06:19:49+00:00\",\"dateModified\":\"2025-10-31T06:56:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Enabling data compression in Apache server improves site speed. Here is how to enable GZIP compression in Apache server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1\",\"width\":301,\"height\":200,\"caption\":\"enable gzip compression in apache\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/enable-gzip-compression-apache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enable GZIP Compression in Apache Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Enable GZIP Compression in Apache Server - Ubiq BI","description":"Enabling data compression in Apache server improves site speed. Here is how to enable GZIP compression in Apache server.","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:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/","og_locale":"en_US","og_type":"article","og_title":"How to Enable GZIP Compression in Apache Server - Ubiq BI","og_description":"Enabling data compression in Apache server improves site speed. Here is how to enable GZIP compression in Apache server.","og_url":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2025-10-31T06:19:49+00:00","article_modified_time":"2025-10-31T06:56:25+00:00","og_image":[{"width":301,"height":200,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/10\/enable-gzip-compression-apache.jpg","type":"image\/jpeg"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Enable GZIP Compression in Apache Server","datePublished":"2025-10-31T06:19:49+00:00","dateModified":"2025-10-31T06:56:25+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/"},"wordCount":999,"commentCount":0,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/10\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1","keywords":["gzip compression"],"articleSection":["Apache"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/","url":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/","name":"How to Enable GZIP Compression in Apache Server - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/10\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1","datePublished":"2025-10-31T06:19:49+00:00","dateModified":"2025-10-31T06:56:25+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Enabling data compression in Apache server improves site speed. Here is how to enable GZIP compression in Apache server.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/10\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/10\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1","width":301,"height":200,"caption":"enable gzip compression in apache"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/enable-gzip-compression-apache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Enable GZIP Compression in Apache Server"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/10\/enable-gzip-compression-apache.jpg?fit=301%2C200&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-2yk","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/9816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=9816"}],"version-history":[{"count":26,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/9816\/revisions"}],"predecessor-version":[{"id":9848,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/9816\/revisions\/9848"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/9836"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=9816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=9816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=9816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}