{"id":27164,"date":"2018-06-19T02:17:13","date_gmt":"2018-06-19T07:17:13","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27164"},"modified":"2022-06-03T03:34:54","modified_gmt":"2022-06-03T08:34:54","slug":"how-to-set-up-nginx-with-http-2-support-on-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/","title":{"rendered":"How To Set Up Nginx with HTTP\/2 Support on Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-27194\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg\" alt=\"How To Set Up Nginx with HTTP\/2 Support on Debian 9\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>We will show you how to set up Nginx with HTTP\/2 Support on Debian 9. HTTP\/2 is a major revision of the HTTP network protocol and offers many benefits. Enabling HTTP\/2 on Nginx running on Debian 9 server, is pretty easy task if your carefully follow the tutorial below. Let&#8217;s get started!<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69dfd5a6d7911\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69dfd5a6d7911\"  aria-label=\"Toggle\" \/><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:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#What-is-HTTP2\" >What is HTTP\/2?<\/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.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#Set-up-Nginx-with-HTTP2-support-on-Debian-9\" >Set up Nginx with HTTP\/2 support on Debian 9<\/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.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#Verify-that-Nginx-supports-HTTP2\" >Verify that Nginx supports HTTP\/2<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What-is-HTTP2\"><\/span>What is HTTP\/2?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>HTTP\/2 is a major revision of the HTTP network protocol. It is derived from the experimental SPDY protocol developed by Google. The primary goal of HTTP\/2 is to reduce the latency, minimize the protocol overhead and add support for request prioritization. This makes the web applications to load much faster.<\/p>\n<p>High level syntax like status codes, methods, headers fields, URIs etc. are the same as the earlier version of HTTP except there is a difference on how the data is framed and transported between the client and the server.<\/p>\n<p>HTTP\/2 support was introduced in Nginx version 1.9.5 and it is available in all newer versions. If you are using Debian 9 as an operating system you should not worry whether you can use HTTP\/2 with Nginx or not. The Nginx version that is included in the default Debian 9 repository is higher than 1.9.5 so HTTP\/2 support will be included.<\/p>\n<p>To check the Nginx version installed on your <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian VPS<\/a>, <a href=\"https:\/\/www.rosehosting.com\/blog\/connect-to-your-linux-vps-via-ssh\/\" target=\"_blank\" rel=\"noopener noreferrer\">connect to your server via SSH<\/a> and run the following command:<\/p>\n<pre>nginx -v<\/pre>\n<p>The output should be similar to the one below:<\/p>\n<pre># nginx -v\r\nnginx version: nginx\/1.10.3<\/pre>\n<p>If you get something like the following:<\/p>\n<pre># nginx -v\r\n-bash: \/usr\/sbin\/nginx: No such file or directory<\/pre>\n<p>It means Nginx is not installed on your <a href=\"https:\/\/www.rosehosting.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a> and you need to install it first. Run the following commands to install Nginx:<\/p>\n<pre>apt-get update\r\napt-get install nginx<\/pre>\n<p>Once the installation is completed run the command above to verify that Nginx is installed and it supports HTTP\/2.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Set-up-Nginx-with-HTTP2-support-on-Debian-9\"><\/span>Set up Nginx with HTTP\/2 support on Debian 9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>HTTP\/2 does not require encryption. However, currently no browser supports HTTP\/2 unencrypted so you need to have a valid <a href=\"https:\/\/www.rosehosting.com\/ssl-certificates.html\" target=\"_blank\" rel=\"noopener noreferrer\">SSL certificate<\/a> issued for your domain before proceeding with the other steps in this tutorial.<\/p>\n<p>To enable HTTP\/2 in Nginx, open the default Nginx server block using a text editor of your choice.<\/p>\n<pre>nano \/etc\/nginx\/sites-available\/default<\/pre>\n<p>Then, add the following lines:<\/p>\n<pre>server {\r\nlisten 443 ssl http2 default_server;\r\nserver_name domain.com www.domain.com;\r\nroot \/var\/www\/html;\r\nindex index.html;\r\n\r\nlocation \/ {\r\ntry_files $uri $uri\/ =404;\r\n}\r\n\r\nssl_certificate \/etc\/nginx\/ssl\/domain.com.crt;\r\nssl_certificate_key \/etc\/nginx\/ssl\/domain.com.key;\r\n}\r\n\r\nserver {\r\nlisten 80;\r\nserver_name domain.com www.domain.com;\r\nreturn 301 https:\/\/$server_name$request_uri;\r\n}\r\n<\/pre>\n<p>Use your domain name for <code>server_name<\/code>, the location of your website data for <code>root<\/code> and the path to your SSL certificate and private key for <code>ssl_certificate<\/code> and <code>ssl_certificate_key<\/code>.<\/p>\n<p>Once you are done, save the file and close it. Check if there are syntax errors in the Nginx configuration using the command below:<\/p>\n<pre>nginx -t<\/pre>\n<p>If everything is OK with the configuration, the output should be similar to the one below:<\/p>\n<pre># nginx -t\r\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/pre>\n<p>Otherwise, the errors will be listed in the output so you easily find out what the problem is.<\/p>\n<p>Once you are sure there are no problems with the configuration in Nginx, you can restart the service using the following command:<\/p>\n<pre>systemctl restart nginx.service<\/pre>\n<p>One thing that we can improve here is the key exchange security. Nginx by default uses a 1028-bit Diffie-Hellman key and we can generate new, a more secure one. To generate new Diffie-Hellman key run the following command:<\/p>\n<pre>openssl dhparam -out \/etc\/nginx\/ssl\/dhparam.pem 2048<\/pre>\n<p>The process will take a couple of minutes to complete. Once the key is generated, open the default Nginx server block and add the following line under <code>ssl_certificate_key<\/code>:<\/p>\n<pre>ssl_dhparam \/etc\/nginx\/ssl\/dhparam.pem;<\/pre>\n<p>Then, restart Nginx for the changes to take effect.<\/p>\n<p>If you want to set up Nginx with HTTP\/2 support for a different domain name, you can follow our tutorial on <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-server-blocks-on-ubuntu-and-centos\/\" target=\"_blank\" rel=\"noopener noreferrer\">how to set up server blocks in Nginx<\/a>.<\/p>\n<p>Also, if you are using Ubuntu 16.04 or CentOS 7 as an operating system, you can check our tutorial on <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-http2-in-nginx-on-ubuntu-and-centos\/\" target=\"_blank\" rel=\"noopener noreferrer\">how to enable HTTP\/2 in Nginx on Ubuntu or CentOS<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Verify-that-Nginx-supports-HTTP2\"><\/span>Verify that Nginx supports HTTP\/2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To check whether HTTP\/2 is enabled in Nginx you can use our online <a href=\"https:\/\/www.rosehosting.com\/network-tools\/http2-support.html\" target=\"_blank\" rel=\"noopener noreferrer\">HTTP\/2 checker tool<\/a>.<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to set up Nginx with HTTP\/2 support on Debian 9, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/http2-hosting.html\">HTTP\/2 Optimized\u00a0Hosting<\/a> solutions, in which case you can simply ask our expert Linux admins to set up Nginx with HTTP\/2 support on Debian 9 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p>PS. If you liked this post on how to set up Nginx with HTTP\/2 support on Debian 9, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We will show you how to set up Nginx with HTTP\/2 Support on Debian 9. HTTP\/2 is a major revision &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How To Set Up Nginx with HTTP\/2 Support on Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#more-27164\" aria-label=\"Read more about How To Set Up Nginx with HTTP\/2 Support on Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27194,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,4,1703,1707],"tags":[48,1364,49],"class_list":["post-27164","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-rosehosting","category-security","category-web-servers","tag-debian","tag-http2","tag-nginx","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Set Up Nginx with HTTP\/2 Support on Debian 9 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How To Set Up Nginx with HTTP\/2 Support on Debian 9 | RoseHosting\" \/>\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.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Set Up Nginx with HTTP\/2 Support on Debian 9\" \/>\n<meta property=\"og:description\" content=\"How To Set Up Nginx with HTTP\/2 Support on Debian 9 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-19T07:17:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:34:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\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:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How To Set Up Nginx with HTTP\\\/2 Support on Debian 9\",\"datePublished\":\"2018-06-19T07:17:13+00:00\",\"dateModified\":\"2022-06-03T08:34:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/\"},\"wordCount\":709,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg\",\"keywords\":[\"debian\",\"HTTP\\\/2\",\"nginx\"],\"articleSection\":[\"Debian\",\"RoseHosting Platform\",\"Security\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/\",\"name\":\"How To Set Up Nginx with HTTP\\\/2 Support on Debian 9 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg\",\"datePublished\":\"2018-06-19T07:17:13+00:00\",\"dateModified\":\"2022-06-03T08:34:54+00:00\",\"description\":\"How To Set Up Nginx with HTTP\\\/2 Support on Debian 9 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg\",\"width\":742,\"height\":371,\"caption\":\"How To Set Up Nginx with HTTP\\\/2 Support on Debian 9\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-set-up-nginx-with-http-2-support-on-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Set Up Nginx with HTTP\\\/2 Support on Debian 9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Set Up Nginx with HTTP\/2 Support on Debian 9 | RoseHosting","description":"How To Set Up Nginx with HTTP\/2 Support on Debian 9 | RoseHosting","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.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How To Set Up Nginx with HTTP\/2 Support on Debian 9","og_description":"How To Set Up Nginx with HTTP\/2 Support on Debian 9 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-06-19T07:17:13+00:00","article_modified_time":"2022-06-03T08:34:54+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How To Set Up Nginx with HTTP\/2 Support on Debian 9","datePublished":"2018-06-19T07:17:13+00:00","dateModified":"2022-06-03T08:34:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/"},"wordCount":709,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg","keywords":["debian","HTTP\/2","nginx"],"articleSection":["Debian","RoseHosting Platform","Security","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/","name":"How To Set Up Nginx with HTTP\/2 Support on Debian 9 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg","datePublished":"2018-06-19T07:17:13+00:00","dateModified":"2022-06-03T08:34:54+00:00","description":"How To Set Up Nginx with HTTP\/2 Support on Debian 9 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-To-Set-Up-Nginx-with-HTTP-2-Support-on-Debian-9.jpg","width":742,"height":371,"caption":"How To Set Up Nginx with HTTP\/2 Support on Debian 9"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-nginx-with-http-2-support-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Set Up Nginx with HTTP\/2 Support on Debian 9"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=27164"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27164\/revisions"}],"predecessor-version":[{"id":41792,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27164\/revisions\/41792"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27194"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=27164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=27164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=27164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}