<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ananth</title>
    <description>The latest articles on DEV Community by Ananth (@ananths).</description>
    <link>https://dev.to/ananths</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F666927%2Fb4756232-f05b-47bd-a687-29211f395982.jpg</url>
      <title>DEV Community: Ananth</title>
      <link>https://dev.to/ananths</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ananths"/>
    <language>en</language>
    <item>
      <title>Make your website faster with a HTTP/2 Webserver like Nginx</title>
      <dc:creator>Ananth</dc:creator>
      <pubDate>Wed, 14 Jul 2021 12:24:55 +0000</pubDate>
      <link>https://dev.to/ananths/make-your-website-faster-with-a-http-2-webserver-like-nginx-g4p</link>
      <guid>https://dev.to/ananths/make-your-website-faster-with-a-http-2-webserver-like-nginx-g4p</guid>
      <description>&lt;p&gt;Websites have been around for a very long time. HTTP is the default protocol that is used in serving the web pages. The most common version used is version 1.1. and it has served us quite well the last few decades.&lt;/p&gt;

&lt;p&gt;With the recent advances in the browser technologies, especially with the popularity of Web 2.0 features used in popular frontend Javascript frameworks, it was time to upgrade the backend server technologies also. &lt;/p&gt;

&lt;p&gt;Limitations of HTTP version 1.1&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Limited to single or a few handful of client requests&lt;/li&gt;
&lt;li&gt;SSL/TSL certificates are optional&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Advantages of HTTP/2&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It loads pages much faster due to parallel downloads&lt;/li&gt;
&lt;li&gt;More secure as it requires SSL/TSL certificate to connect&lt;/li&gt;
&lt;li&gt;No frontend code changes required to take advantage of newer features on the server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How to Enable HTTP/2 on Nginx Servers&lt;/p&gt;

&lt;p&gt;If your website is running on Nginx webserver, it is very easy to change it to run HTTP/2. &lt;/p&gt;

&lt;p&gt;Step 1: Edit your server config file for your website.  For Linux users, it is usually found in /etc/nginx/sites-available/default. &lt;/p&gt;

&lt;p&gt;Step 2: Find the line that reads "listen 443 ssl"&lt;/p&gt;

&lt;p&gt;Step 3: Append the word http2 so that it now reads "listen 443 ssl http2"&lt;/p&gt;

&lt;p&gt;Step 4: Check if the settings are correct with "nginx -t"&lt;/p&gt;

&lt;p&gt;Step 5: If everything is ok, restart the server with "systemctl restart nginx"&lt;/p&gt;

&lt;p&gt;Et voila!&lt;/p&gt;

&lt;p&gt;Testing the Changes&lt;/p&gt;

&lt;p&gt;In order to verify that your server is now running on http/2 mode, you can open the website in your browser like Chrome or Firefox.  If you open the developer console and inspect the Network tab, it shows the version of the requests made to the web server.&lt;/p&gt;

</description>
      <category>http2</category>
      <category>nginx</category>
      <category>spdy</category>
    </item>
  </channel>
</rss>
