How to update a Ruby on Rails website form http 1 to http 2The definitive guide to form-based website authenticationHTTP status code for update and delete?How to use java.net.URLConnection to fire and handle HTTP requestsRuby on Rails Server optionsHow is an HTTP POST request made in node.js?How are parameters sent in an HTTP POST request?ruby on rails nginx with passenger can't find viewsNginx configuration resulting in too many connectionsHow to configure NGINX server which download any files in derectoryWordpress constant redirect with nginx upstream

Why we can't jump without bending our knees?

Got a new frameset, don't know why I need this split ring collar?

Is this broken pipe the reason my freezer is not working? Can it be fixed?

Print the new site header

In a Fish that is not a Fish

Why swap space doesn't get filesystem check at boot time?

Fill the maze with a wall-following Snake until it gets stuck

What are the mechanical differences between Adapt and Monstrosity?

Bash function: Execute $@ command with each argument in sequence executed separately

You may find me... puzzling

First occurrence in the Sixers sequence

Should I email my professor to clear up a (possibly very irrelevant) awkward misunderstanding?

My student in one course asks for paid tutoring in another course. Appropriate?

How much steel armor can you wear and still be able to swim?

Kelvin type connection

Does knowing the surface area of all faces uniquely determine a tetrahedron?

Simplify, equivalent for (p ∨ ¬q) ∧ (¬p ∨ ¬q)

How did the European Union reach the figure of 3% as a maximum allowed deficit?

Are there any individual aliens that have gained superpowers in the Marvel universe?

Using roof rails to set up hammock

How can I maintain game balance while allowing my player to craft genuinely useful items?

How do I correctly reduce geometry on part of a mesh?

A medieval book with a redhead girl as a main character who allies with vampires and werewolves against scientific opposition

How to recover a single blank shot from a film camera



How to update a Ruby on Rails website form http 1 to http 2


The definitive guide to form-based website authenticationHTTP status code for update and delete?How to use java.net.URLConnection to fire and handle HTTP requestsRuby on Rails Server optionsHow is an HTTP POST request made in node.js?How are parameters sent in an HTTP POST request?ruby on rails nginx with passenger can't find viewsNginx configuration resulting in too many connectionsHow to configure NGINX server which download any files in derectoryWordpress constant redirect with nginx upstream






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















Currently using Rails 5.2 and Ruby 2.3
with the server: Nginx with passenger



please tell the changes that are required to update the website from HTTP version 1 to HTTP 2.



Virtual Host :



 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;





Thanks in advance










share|improve this question






























    1















    Currently using Rails 5.2 and Ruby 2.3
    with the server: Nginx with passenger



    please tell the changes that are required to update the website from HTTP version 1 to HTTP 2.



    Virtual Host :



     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;





    Thanks in advance










    share|improve this question


























      1












      1








      1








      Currently using Rails 5.2 and Ruby 2.3
      with the server: Nginx with passenger



      please tell the changes that are required to update the website from HTTP version 1 to HTTP 2.



      Virtual Host :



       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;





      Thanks in advance










      share|improve this question
















      Currently using Rails 5.2 and Ruby 2.3
      with the server: Nginx with passenger



      please tell the changes that are required to update the website from HTTP version 1 to HTTP 2.



      Virtual Host :



       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;





      Thanks in advance







      http nginx passenger http2 ruby-on-rails-5.2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 4:54







      vidur punj

















      asked Mar 25 at 4:40









      vidur punjvidur punj

      1,30412029




      1,30412029






















          2 Answers
          2






          active

          oldest

          votes


















          0














          You need to configure the web server to use HTTP/2, for instance, tomcat / apache and the client application needs to use the right httpclient / adapter which uses HTTP/2.






          share|improve this answer






























            0














            You can enable HTTP/2 in your Nginx config assuming you are on a relatively new version of Nginx.



            However all browsers only support HTTP/2 over HTTPS. As you are only listening on port 80, I presume you are only set up for HTTP, so the first thing you need to do is setup HTTPS on your website.



            After that, you just need below config (again assuming on a recent version of Nginx), to listen using protocol http2 on port 443:



            listen 443 ssl http2; 
            listen [::]:443 ssl http2 ipv6only=on;





            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55331365%2fhow-to-update-a-ruby-on-rails-website-form-http-1-to-http-2%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              You need to configure the web server to use HTTP/2, for instance, tomcat / apache and the client application needs to use the right httpclient / adapter which uses HTTP/2.






              share|improve this answer



























                0














                You need to configure the web server to use HTTP/2, for instance, tomcat / apache and the client application needs to use the right httpclient / adapter which uses HTTP/2.






                share|improve this answer

























                  0












                  0








                  0







                  You need to configure the web server to use HTTP/2, for instance, tomcat / apache and the client application needs to use the right httpclient / adapter which uses HTTP/2.






                  share|improve this answer













                  You need to configure the web server to use HTTP/2, for instance, tomcat / apache and the client application needs to use the right httpclient / adapter which uses HTTP/2.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 25 at 6:20









                  Kok How TehKok How Teh

                  186317




                  186317























                      0














                      You can enable HTTP/2 in your Nginx config assuming you are on a relatively new version of Nginx.



                      However all browsers only support HTTP/2 over HTTPS. As you are only listening on port 80, I presume you are only set up for HTTP, so the first thing you need to do is setup HTTPS on your website.



                      After that, you just need below config (again assuming on a recent version of Nginx), to listen using protocol http2 on port 443:



                      listen 443 ssl http2; 
                      listen [::]:443 ssl http2 ipv6only=on;





                      share|improve this answer



























                        0














                        You can enable HTTP/2 in your Nginx config assuming you are on a relatively new version of Nginx.



                        However all browsers only support HTTP/2 over HTTPS. As you are only listening on port 80, I presume you are only set up for HTTP, so the first thing you need to do is setup HTTPS on your website.



                        After that, you just need below config (again assuming on a recent version of Nginx), to listen using protocol http2 on port 443:



                        listen 443 ssl http2; 
                        listen [::]:443 ssl http2 ipv6only=on;





                        share|improve this answer

























                          0












                          0








                          0







                          You can enable HTTP/2 in your Nginx config assuming you are on a relatively new version of Nginx.



                          However all browsers only support HTTP/2 over HTTPS. As you are only listening on port 80, I presume you are only set up for HTTP, so the first thing you need to do is setup HTTPS on your website.



                          After that, you just need below config (again assuming on a recent version of Nginx), to listen using protocol http2 on port 443:



                          listen 443 ssl http2; 
                          listen [::]:443 ssl http2 ipv6only=on;





                          share|improve this answer













                          You can enable HTTP/2 in your Nginx config assuming you are on a relatively new version of Nginx.



                          However all browsers only support HTTP/2 over HTTPS. As you are only listening on port 80, I presume you are only set up for HTTP, so the first thing you need to do is setup HTTPS on your website.



                          After that, you just need below config (again assuming on a recent version of Nginx), to listen using protocol http2 on port 443:



                          listen 443 ssl http2; 
                          listen [::]:443 ssl http2 ipv6only=on;






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 25 at 8:05









                          Barry PollardBarry Pollard

                          18.7k33251




                          18.7k33251



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55331365%2fhow-to-update-a-ruby-on-rails-website-form-http-1-to-http-2%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                              Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                              Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript