title: How to update a Ruby on Rails website form http 1 to http 2
body: <p>Currently using Rails 5.2 and Ruby 2.3
  with the server: Nginx with passenger  </p>
  
  <p>please tell the changes that are required to update the website from HTTP version 1 to HTTP 2.</p>
  
  <p><strong>Virtual Host</strong> :</p>
  
  <pre><code> server {
      listen 80;
      listen [::]:80 ipv6only=on;
  
  server_name ec2-34-xxx-xx-xx.us-west-2.compute.amazonaws.com;
  
  # Tell Nginx and Passenger where your app's 'public' directory is
  root /home/ec2-xxxx/apps/xxxxxxxxxx/public;
  
  # Turn on Passenger
  rails_env    production;
  passenger_enabled on;
  passenger_ruby /home/ec2-xxx/.rvm/gems/ruby-2.3.8@5.0.2/wrappers/ruby;
  
      # redirect server error pages to the static page /50x.html
      error_page   500 502 503 504  /50x.html;
  
      location = /50x.html {
          root   html;
      }
  location ~ /.well-known {
              allow all;
      }
  
  }
  </code></pre>
  
  <p>Thanks in advance</p>