{"id":272,"date":"2022-01-14T09:24:58","date_gmt":"2022-01-14T07:24:58","guid":{"rendered":"https:\/\/greenhouse.cv.ua\/?p=272"},"modified":"2022-01-14T09:24:58","modified_gmt":"2022-01-14T07:24:58","slug":"enable-http-2-in-apache-2-4","status":"publish","type":"post","link":"https:\/\/greenhouse.cv.ua\/?p=272","title":{"rendered":"Enable HTTP\/2 in Apache 2.4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Requirements<\/h1>\n\n\n\n<ul class=\"wp-block-list\"><li>A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.<\/li><li>A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\u2019t support HTTP\/2 in cleartext (non-TLS) mode.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Install Apache2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Per default it will be <a href=\"https:\/\/packages.ubuntu.com\/focal\/web\/apache2\">apache2 version 2.4.41<\/a> what is enought for http2 support.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  sudo apt install apache2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Tell Apache to use PHP FastCGI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You want to make Apache use a compatible PHP implementation by changing mod_php to php-fpm (PHP FastCGI). If your website or app breaks on FastCGI, you can always revert back to mod_php until further troubleshooting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Install PHP FastCGI module for PHP 7.4, it is <a href=\"https:\/\/packages.ubuntu.com\/focal\/php\/php-fpm\">default version for Ubuntu 20.04<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php7.4-fpm <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enable required modules, <strong>proxy_fcgi<\/strong> and <strong>setenvif<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod proxy_fcgi setenvif<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enable <strong>php7.4-fpm<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enconf php7.4-fpm <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Disable<\/em> the <strong>mod_php<\/strong> module:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2dismod php7.4<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Restart Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service apache2 restart<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Change MPM from &#8220;prefork&#8221; to &#8220;event&#8221;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Since the default &#8220;prefork&#8221; MPM (Multi-Processing Module) is not fully compatible with HTTP\/2, you\u2019ll need to change Apache\u2019s current MPM to &#8220;event&#8221; (or &#8220;worker&#8221;). This is shown by the error message in Apache versions greater than 2.4.27 as \u2013 AH10034: The mpm module (prefork.c) is not supported by mod_http2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep in mind that your server requires more horsepower for HTTP\/2 than for HTTP\/1.1, due to the multiplexing feature and other factors. That said, smaller servers with low traffic may not see much difference in performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, disable the &#8220;prefork&#8221; MPM:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2dismod mpm_prefork <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enable the &#8220;event&#8221; MPM:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod mpm_event <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Restart Apache2 and PHP 7.4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service apache2 restart &amp;&amp; sudo service php7.4-fpm restart<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Add a line to your Virtual Host file<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following line to your site\u2019s current Virtual Host config file. This can go anywhere between the \u2026 tags. If you want to serve HTTP\/2 for all your sites, add this to your global \/etc\/apache2\/apache2.conf file instead of per each individual site\u2019s Virtual Host file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Protocols h2 h2c http\/1.1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Explanation<\/em>: h2 is TLS-encrypted HTTP\/2, h2c is cleartext HTTP\/2, and http\/1.1 is ordinary HTTP\/1.1.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Having http\/1.1 at the end of the line provides a fallback to HTTP\/1.1, while h2c is not strictly necessary.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Enable the mod_http2 Apache module<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now you can enable the http2 module in Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod http2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check Apache2 config and if no errors, restart Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apachectl configtest &amp;&amp; sudo service apache2 restart<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6 create http2.conf for entire Server HTTP2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create a new http2.conf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apache2\/conf-available\/http2.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and add all the following rows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule http2_module&gt;\n    Protocols h2 h2c http\/1.1\n    H2Direct on\n&lt;\/IfModule&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enable the http2.conf by running<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enconf http2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check Apache2 config and if no errors, restart your Apache2<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apachectl configtest &amp;&amp; sudo service apache2 restart<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and enhance your ssl-vhost file (default-ssl.conf):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apache2\/sites-available\/default-ssl.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Amend in your configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>...\nProtocols h2 h2c http\/1.1\nH2Push on\nH2PushPriority * after\nH2PushPriority text\/css before\nH2PushPriority image\/jpg after 32\nH2PushPriority image\/jpeg after 32\nH2PushPriority image\/png after 32\nH2PushPriority application\/javascript interleaved\n...<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">P.S. All in one command (you still have to edit your VirtualHost and ssl config):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade\nsudo apt install apache2 php7.4-fpm \nsudo a2enmod proxy_fcgi setenvif\nsudo a2enconf php7.4-fpm \nsudo a2dismod php7.4 \nsudo service apache2 restart\nsudo a2dismod mpm_prefork \nsudo a2enmod mpm_event \nsudo service apache2 restart \nsudo service php7.4-fpm restart\nsudo a2enmod http2\nsudo service apache2 restart\nsudo echo \"&lt;IfModule http2_module&gt;\" &gt; \/etc\/apache2\/conf-available\/http2.conf\nsudo echo \"Protocols h2 h2c http\/1.1\" &gt;&gt; \/etc\/apache2\/conf-available\/http2.conf\nsudo echo \"H2Direct on\" &gt;&gt; \/etc\/apache2\/conf-available\/http2.conf\nsudo echo \"&lt;\/IfModule&gt;\" &gt;&gt; \/etc\/apache2\/conf-available\/http2.conf\nsudo a2enconf http2\nsudo apachectl configtest &amp;&amp; sudo service apache2 restart<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx. A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 . . .<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\u2019t support HTTP\/2 in cleartext (non-TLS) mode. Step 1: Install Apache2 Per default it will be apache2 version 2.4.41 what\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Bernyk Dmytro\"\/>\n\t<meta name=\"google-site-verification\" content=\"WWaetEUWLRU2jydwFnZj-zGdTpyEbfyHu0JsCf4I2p8\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/greenhouse.cv.ua\/?p=272\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"uk_UA\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Greenhouse - \u041c\u0456\u0439 \u0437\u0430\u0442\u0438\u0448\u043d\u0438\u0439 \u0437\u0435\u043b\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0438\u043d\u043e\u043a\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Enable HTTP\/2 in Apache 2.4 - Greenhouse\" \/>\n\t\t<meta property=\"og:description\" content=\"Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\u2019t support HTTP\/2 in cleartext (non-TLS) mode. Step 1: Install Apache2 Per default it will be apache2 version 2.4.41 what\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/greenhouse.cv.ua\/?p=272\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-01-14T07:24:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-01-14T07:24:58+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Enable HTTP\/2 in Apache 2.4 - Greenhouse\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\u2019t support HTTP\/2 in cleartext (non-TLS) mode. Step 1: Install Apache2 Per default it will be apache2 version 2.4.41 what\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#blogposting\",\"name\":\"Enable HTTP\\\/2 in Apache 2.4 - Greenhouse\",\"headline\":\"Enable HTTP\\\/2 in Apache 2.4\",\"author\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#articleImage\",\"url\":\"https:\\\/\\\/greenhouse.cv.ua\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/avatar_user_2_1612907072-96x96.gif\",\"width\":96,\"height\":96,\"caption\":\"Bernyk Dmytro\"},\"datePublished\":\"2022-01-14T09:24:58+02:00\",\"dateModified\":\"2022-01-14T09:24:58+02:00\",\"inLanguage\":\"uk\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#webpage\"},\"articleSection\":\"Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/greenhouse.cv.ua\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?cat=7#listItem\",\"name\":\"Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?cat=7#listItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?cat=7\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#listItem\",\"name\":\"Enable HTTP\\\/2 in Apache 2.4\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#listItem\",\"position\":3,\"name\":\"Enable HTTP\\\/2 in Apache 2.4\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?cat=7#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/#person\",\"name\":\"Bernyk Dmytro\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#personImage\",\"url\":\"https:\\\/\\\/greenhouse.cv.ua\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/avatar_user_2_1612907072-96x96.gif\",\"width\":96,\"height\":96,\"caption\":\"Bernyk Dmytro\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?author=2#author\",\"url\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?author=2\",\"name\":\"Bernyk Dmytro\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#authorImage\",\"url\":\"https:\\\/\\\/greenhouse.cv.ua\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/avatar_user_2_1612907072-96x96.gif\",\"width\":96,\"height\":96,\"caption\":\"Bernyk Dmytro\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#webpage\",\"url\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272\",\"name\":\"Enable HTTP\\\/2 in Apache 2.4 - Greenhouse\",\"description\":\"Based on https:\\\/\\\/gist.github.com\\\/GAS85\\\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.A registered domain name with working HTTPS (TLS\\\/SSL). HTTP\\\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\\u2019t support HTTP\\\/2 in cleartext (non-TLS) mode. Step 1: Install Apache2 Per default it will be apache2 version 2.4.41 what\",\"inLanguage\":\"uk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?p=272#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/?author=2#author\"},\"datePublished\":\"2022-01-14T09:24:58+02:00\",\"dateModified\":\"2022-01-14T09:24:58+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/#website\",\"url\":\"https:\\\/\\\/greenhouse.cv.ua\\\/\",\"name\":\"Greenhouse\",\"description\":\"\\u041c\\u0456\\u0439 \\u0437\\u0430\\u0442\\u0438\\u0448\\u043d\\u0438\\u0439 \\u0437\\u0435\\u043b\\u0435\\u043d\\u0438\\u0439 \\u0431\\u0443\\u0434\\u0438\\u043d\\u043e\\u043a\",\"inLanguage\":\"uk\",\"publisher\":{\"@id\":\"https:\\\/\\\/greenhouse.cv.ua\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Enable HTTP\/2 in Apache 2.4 - Greenhouse","description":"Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\u2019t support HTTP\/2 in cleartext (non-TLS) mode. Step 1: Install Apache2 Per default it will be apache2 version 2.4.41 what","canonical_url":"https:\/\/greenhouse.cv.ua\/?p=272","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"WWaetEUWLRU2jydwFnZj-zGdTpyEbfyHu0JsCf4I2p8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/greenhouse.cv.ua\/?p=272#blogposting","name":"Enable HTTP\/2 in Apache 2.4 - Greenhouse","headline":"Enable HTTP\/2 in Apache 2.4","author":{"@id":"https:\/\/greenhouse.cv.ua\/?author=2#author"},"publisher":{"@id":"https:\/\/greenhouse.cv.ua\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/greenhouse.cv.ua\/?p=272#articleImage","url":"https:\/\/greenhouse.cv.ua\/wp-content\/uploads\/2021\/02\/avatar_user_2_1612907072-96x96.gif","width":96,"height":96,"caption":"Bernyk Dmytro"},"datePublished":"2022-01-14T09:24:58+02:00","dateModified":"2022-01-14T09:24:58+02:00","inLanguage":"uk","mainEntityOfPage":{"@id":"https:\/\/greenhouse.cv.ua\/?p=272#webpage"},"isPartOf":{"@id":"https:\/\/greenhouse.cv.ua\/?p=272#webpage"},"articleSection":"Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/greenhouse.cv.ua\/?p=272#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/greenhouse.cv.ua#listItem","position":1,"name":"Home","item":"https:\/\/greenhouse.cv.ua","nextItem":{"@type":"ListItem","@id":"https:\/\/greenhouse.cv.ua\/?cat=7#listItem","name":"Linux"}},{"@type":"ListItem","@id":"https:\/\/greenhouse.cv.ua\/?cat=7#listItem","position":2,"name":"Linux","item":"https:\/\/greenhouse.cv.ua\/?cat=7","nextItem":{"@type":"ListItem","@id":"https:\/\/greenhouse.cv.ua\/?p=272#listItem","name":"Enable HTTP\/2 in Apache 2.4"},"previousItem":{"@type":"ListItem","@id":"https:\/\/greenhouse.cv.ua#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/greenhouse.cv.ua\/?p=272#listItem","position":3,"name":"Enable HTTP\/2 in Apache 2.4","previousItem":{"@type":"ListItem","@id":"https:\/\/greenhouse.cv.ua\/?cat=7#listItem","name":"Linux"}}]},{"@type":"Person","@id":"https:\/\/greenhouse.cv.ua\/#person","name":"Bernyk Dmytro","image":{"@type":"ImageObject","@id":"https:\/\/greenhouse.cv.ua\/?p=272#personImage","url":"https:\/\/greenhouse.cv.ua\/wp-content\/uploads\/2021\/02\/avatar_user_2_1612907072-96x96.gif","width":96,"height":96,"caption":"Bernyk Dmytro"}},{"@type":"Person","@id":"https:\/\/greenhouse.cv.ua\/?author=2#author","url":"https:\/\/greenhouse.cv.ua\/?author=2","name":"Bernyk Dmytro","image":{"@type":"ImageObject","@id":"https:\/\/greenhouse.cv.ua\/?p=272#authorImage","url":"https:\/\/greenhouse.cv.ua\/wp-content\/uploads\/2021\/02\/avatar_user_2_1612907072-96x96.gif","width":96,"height":96,"caption":"Bernyk Dmytro"}},{"@type":"WebPage","@id":"https:\/\/greenhouse.cv.ua\/?p=272#webpage","url":"https:\/\/greenhouse.cv.ua\/?p=272","name":"Enable HTTP\/2 in Apache 2.4 - Greenhouse","description":"Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\u2019t support HTTP\/2 in cleartext (non-TLS) mode. Step 1: Install Apache2 Per default it will be apache2 version 2.4.41 what","inLanguage":"uk","isPartOf":{"@id":"https:\/\/greenhouse.cv.ua\/#website"},"breadcrumb":{"@id":"https:\/\/greenhouse.cv.ua\/?p=272#breadcrumblist"},"author":{"@id":"https:\/\/greenhouse.cv.ua\/?author=2#author"},"creator":{"@id":"https:\/\/greenhouse.cv.ua\/?author=2#author"},"datePublished":"2022-01-14T09:24:58+02:00","dateModified":"2022-01-14T09:24:58+02:00"},{"@type":"WebSite","@id":"https:\/\/greenhouse.cv.ua\/#website","url":"https:\/\/greenhouse.cv.ua\/","name":"Greenhouse","description":"\u041c\u0456\u0439 \u0437\u0430\u0442\u0438\u0448\u043d\u0438\u0439 \u0437\u0435\u043b\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0438\u043d\u043e\u043a","inLanguage":"uk","publisher":{"@id":"https:\/\/greenhouse.cv.ua\/#person"}}]},"og:locale":"uk_UA","og:site_name":"Greenhouse - \u041c\u0456\u0439 \u0437\u0430\u0442\u0438\u0448\u043d\u0438\u0439 \u0437\u0435\u043b\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0438\u043d\u043e\u043a","og:type":"article","og:title":"Enable HTTP\/2 in Apache 2.4 - Greenhouse","og:description":"Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\u2019t support HTTP\/2 in cleartext (non-TLS) mode. Step 1: Install Apache2 Per default it will be apache2 version 2.4.41 what","og:url":"https:\/\/greenhouse.cv.ua\/?p=272","article:published_time":"2022-01-14T07:24:58+00:00","article:modified_time":"2022-01-14T07:24:58+00:00","twitter:card":"summary_large_image","twitter:title":"Enable HTTP\/2 in Apache 2.4 - Greenhouse","twitter:description":"Based on https:\/\/gist.github.com\/GAS85\/8dadbcb3c9a7ecbcb6705530c1252831 Requirements A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.A registered domain name with working HTTPS (TLS\/SSL). HTTP\/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don\u2019t support HTTP\/2 in cleartext (non-TLS) mode. Step 1: Install Apache2 Per default it will be apache2 version 2.4.41 what"},"aioseo_meta_data":{"post_id":"272","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-05-13 04:47:41","updated":"2025-09-15 14:02:30","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/greenhouse.cv.ua\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/greenhouse.cv.ua\/?cat=7\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tEnable HTTP\/2 in Apache 2.4\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/greenhouse.cv.ua"},{"label":"Linux","link":"https:\/\/greenhouse.cv.ua\/?cat=7"},{"label":"Enable HTTP\/2 in Apache 2.4","link":"https:\/\/greenhouse.cv.ua\/?p=272"}],"featured_image_src":null,"author_info":{"display_name":"Bernyk Dmytro","author_link":"https:\/\/greenhouse.cv.ua\/?author=2"},"_links":{"self":[{"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272"}],"version-history":[{"count":2,"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":274,"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions\/274"}],"wp:attachment":[{"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenhouse.cv.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}