{"id":2510,"date":"2020-12-01T05:37:16","date_gmt":"2020-12-01T05:37:16","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=2510"},"modified":"2025-09-17T04:59:31","modified_gmt":"2025-09-17T04:59:31","slug":"how-to-enable-http2-in-apache","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/","title":{"rendered":"How To Enable HTTP2 in Apache"},"content":{"rendered":"\n<p>Website administrators often face problem of speed and performance. Enabling HTTP2 on their web server is a simple way to speed up their site. Also, it is important to setup HTTP2 in Apache web server from a security point of view. HTTP\/2 supports parallelism, header compression, binary data transfer, and also server push. It is way better than running your site on HTTP protocol. In this article, we will look at how to enable HTTP2 in Apache web 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\/how-to-enable-http2-in-apache\/#What_is_HTTP2\" >What is HTTP2?<\/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\/how-to-enable-http2-in-apache\/#Why_Enable_HTTP2_in_Apache\" >Why Enable HTTP2 in Apache?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#How_To_Enable_HTTP2_in_Apache\" >How To Enable HTTP2 in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#1_Enable_http2_module\" >1. Enable http2 module<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#2_Add_Protocols_directive\" >2. Add Protocols directive<\/a><\/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\/how-to-enable-http2-in-apache\/#3_Restart_Apache_Web_Server\" >3. Restart Apache Web Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#4_Verify_HTTP2\" >4. Verify HTTP\/2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_HTTP2\"><\/span>What is HTTP2?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>HTTP2 is a major upgrade to the good old HTTP Protocol that was used to run most internet websites. It provides significant improvements in areas of speed and security. It is supported by all web browsers and servers. It is supported even by old browsers that support only HTTP protocol. It reduces site latency by simply changing the way data is transferred between client browsers and servers. So the user does not have to make any changes. In fact, it uses the same headers, data formats and status codes as in HTTP. That is why it works with all major web browsers and servers. It just changes the way data is transmitted over network. It is during connection establishment that the browser and server decide to communicate via HTTP2. It is a great way to <a href=\"https:\/\/ubiq.co\/tech-blog\/speed-apache-web-server\/\">speed up Apache web server<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Enable_HTTP2_in_Apache\"><\/span>Why Enable HTTP2 in Apache?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are several reasons why HTTP2 is better than HTTP. Here are some of the most prominent ones:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Prioritization<\/strong> &#8211; HTTP2 allows developers to decide which page elements should be loaded first. For example, should visible elements such as text &amp; images be loaded before background items like CSS files be loaded? By controlling item prioritization, developers can make their web pages load faster.<\/li>\n\n\n\n<li><strong>Multiplexing<\/strong> &#8211; HTTP loads resources sequentially so if one resource takes a lot of time, all other resources are held up. HTTP2 sends multiple streams of data at once, so that web pages load faster.<\/li>\n\n\n\n<li><strong>Header Compression<\/strong> &#8211; HTTP2 compresses request and response headers smartly, by eliminating redundant information, to improve performance and speed.<\/li>\n\n\n\n<li><strong>Server Push<\/strong> &#8211; HTTP2 allows servers to push content before it is requested by client web browser, thereby saving a lot of time in the long run.<\/li>\n\n\n\n<li><strong>Security<\/strong> &#8211; HTTP2 is more secure than HTTP since it is supported for SSL\/TLS sites only.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_To_Enable_HTTP2_in_Apache\"><\/span>How To Enable HTTP2 in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are the steps to enable HTTP2 in Apache web server. Please note, <a href=\"https:\/\/en.wikipedia.org\/wiki\/HTTP\/2\" target=\"_blank\" rel=\"noreferrer noopener\">HTTP\/2<\/a> is supported for HTTPS\/SSL websites only. So please enable SSL in Apache web server before proceeding.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Enable_http2_module\"><\/span>1. Enable http2 module<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>On Ubuntu\/Debian<\/strong><\/p>\n\n\n\n<p>Open terminal and run the following command to enable http2 module.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo a2enmod http2<\/pre>\n\n\n\n<p><strong>On Redhat\/CentOS\/Fedora<\/strong><\/p>\n\n\n\n<p>Apache configuration file is located at one of the following locations, depending on your Linux distribution. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/etc\/apache2\/httpd.conf<\/code><\/li>\n\n\n\n<li><code>\/etc\/apache2\/apache2.conf<\/code><\/li>\n\n\n\n<li><code>\/etc\/httpd\/httpd.conf<\/code><\/li>\n\n\n\n<li><code>\/etc\/httpd\/conf\/httpd.conf<\/code><\/li>\n<\/ul>\n\n\n\n<p>Open terminal and run the following command to open Apache configuration page.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/httpd\/conf\/httpd.conf<\/pre>\n\n\n\n<p>Look for the following line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#LoadModule http2_module modules\/mod_http2.so<\/pre>\n\n\n\n<p>Uncomment it by removing # at its beginning.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">LoadModule http2_module modules\/mod_http2.so<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Add_Protocols_directive\"><\/span>2. Add Protocols directive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Also add the following line to your Apache server configuration file. This needs to be done for both Ubuntu\/Debian as well Redhat\/CentOS linux.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Protocols h2 h2c http\/1.1<\/pre>\n\n\n\n<p>Add the above line to Apache server configuration file. If you have setup virtual host in Apache, then open your virtual configuration file and add the above line in &lt;VirtualHost *:443&gt; tag.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Restart_Apache_Web_Server\"><\/span>3. Restart Apache Web Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Restart Apache web server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># service httpd restart\nOR \n# systemctl restart httpd\nOR\n# sudo service apache2 restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Verify_HTTP2\"><\/span>4. Verify HTTP\/2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Use a third party tools like <a href=\"https:\/\/tools.keycdn.com\/http2-test\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">KeyCDN HTTP2<\/a> checker that allow you to check if HTTP\/2 is enabled on your website.<\/p>\n\n\n\n<p>After you enter your website, with HTTPS URL, it will tell you if HTTP\/2 is enabled in it or not.<\/p>\n\n\n\n<p>As you can see, it is quite easy to enable HTTP\/2 in Apache.<\/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 what is HTTP2, why should enable it and how to enable it in Apache web server. HTTP2 is an essential upgrade for every website. If you do not enable it, your site will be unnecessarily slow. Also, it is important to note that HTTP3 is available and is also being adopted gradually across the web. Though it is not supported by all web browsers and servers, it is growing. So it is high time, you at least upgrade your site to use HTTP2.<\/p>\n\n\n\n<p><a href=\"http:\/\/ubiq.co\/\">Ubiq<\/a>&nbsp;makes it easy to visualize data in minutes, and monitor in real-time dashboards.&nbsp;<a href=\"http:\/\/ubiq.co\/accounts\/register\">Try it<\/a> today!<\/p>\n\n\n\n<p>Also read : <br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-apache-server-status-dashboard-page\/\">How to Enable Apache Server Status dashboard<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/\">How to remove x-powered-by in Apache\/PHP<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-disable-http-options-methods-in-apache\/\">How to Disable HTTP OPTIONS methods in Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-set-default-charset-to-utf-8-encoding-in-apache-using-htaccess\/\">How to Set Default Charset in Apache Server<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is important to set up HTTP2 in Apache web server for speed and performance. Here is how to enable HTTP2 in Apache.<\/p>\n","protected":false},"author":1,"featured_media":2521,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[247,248],"class_list":["post-2510","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-enable-http2","tag-setup-http2"],"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 HTTP2 in Apache - Ubiq BI<\/title>\n<meta name=\"description\" content=\"It is important to set up HTTP2 in Apache web server for speed and performance. Here is how to enable HTTP2 in Apache.\" \/>\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\/how-to-enable-http2-in-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 HTTP2 in Apache - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"It is important to set up HTTP2 in Apache web server for speed and performance. Here is how to enable HTTP2 in Apache.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-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=\"2020-12-01T05:37:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-17T04:59:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-http2-apache.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How To Enable HTTP2 in Apache\",\"datePublished\":\"2020-12-01T05:37:16+00:00\",\"dateModified\":\"2025-09-17T04:59:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/\"},\"wordCount\":762,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1\",\"keywords\":[\"enable http2\",\"setup http2\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/\",\"name\":\"How To Enable HTTP2 in Apache - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1\",\"datePublished\":\"2020-12-01T05:37:16+00:00\",\"dateModified\":\"2025-09-17T04:59:31+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"It is important to set up HTTP2 in Apache web server for speed and performance. Here is how to enable HTTP2 in Apache.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1\",\"width\":1280,\"height\":720,\"caption\":\"enable http2 in apache\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-http2-in-apache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Enable HTTP2 in Apache\"}]},{\"@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 HTTP2 in Apache - Ubiq BI","description":"It is important to set up HTTP2 in Apache web server for speed and performance. Here is how to enable HTTP2 in Apache.","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\/how-to-enable-http2-in-apache\/","og_locale":"en_US","og_type":"article","og_title":"How To Enable HTTP2 in Apache - Ubiq BI","og_description":"It is important to set up HTTP2 in Apache web server for speed and performance. Here is how to enable HTTP2 in Apache.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-12-01T05:37:16+00:00","article_modified_time":"2025-09-17T04:59:31+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-http2-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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How To Enable HTTP2 in Apache","datePublished":"2020-12-01T05:37:16+00:00","dateModified":"2025-09-17T04:59:31+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/"},"wordCount":762,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1","keywords":["enable http2","setup http2"],"articleSection":["Apache"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/","name":"How To Enable HTTP2 in Apache - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1","datePublished":"2020-12-01T05:37:16+00:00","dateModified":"2025-09-17T04:59:31+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"It is important to set up HTTP2 in Apache web server for speed and performance. Here is how to enable HTTP2 in Apache.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1","width":1280,"height":720,"caption":"enable http2 in apache"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-http2-in-apache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How To Enable HTTP2 in Apache"}]},{"@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\/2020\/12\/enable-http2-apache.jpg?fit=1280%2C720&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-Eu","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2510","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=2510"}],"version-history":[{"count":18,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2510\/revisions"}],"predecessor-version":[{"id":9558,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2510\/revisions\/9558"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/2521"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=2510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=2510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=2510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}