Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Http/2 vs http/1.1


DAVID3733

Recommended Posts

Hello

 

I have a site 2.3.4bs running https with SSL cert by network solutions OV server CA2

Always trying to speed things up

Spent so much time altering the order of script downloads, trying to reduce the .css size and so on

 

Wondered if anybody has eCommerce running now on http/2, if so could they share the experience, any issues and so forth

and of course was they a speed improvement and whats was it

 

Thank you

 

David

David

Link to comment
Share on other sites

  • 4 weeks later...

? You would need to implament that on your server and that would be dependent on your host ( assuming your not using your own server!). Google helps,

First, install Apache version 2.4.17 or higher on your server. The installation of the HTTP/2 module for Apache takes just three steps:

1. Add repository:

sudo add-apt-repository ppa:ondrej/apache2

2. Now, update Apache2 from this repository to get the latest modules:

sudo apt-get upgrade apache2

3. Enable HTTP/2 protocol as a module for Apache:

sudo a2enmod http2

Now we must enable HTTP/2 for your virtual host. Open a .conf file for your virtual host. You’ll see something like this one:

<VirtualHost 192.168.1.1:443>
       SSLEngine on
       SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP

       SSLCertificateFile      /etc/ssl/star.example.com.crt
       SSLCertificateKeyFile   /etc/ssl/star.example.com.key

       ServerName      "one.example.com"
       DocumentRoot    "/var/www/html/one"

       Protocols h2 http/1.1

       CustomLog       "/var/log/httpd/one-access.log" combined
       ErrorLog        "/var/log/httpd/one-error.log"

       <Directory /var/www/html>
               AllowOverride none

               Order Allow,Deny
               Allow from all
       </Directory>
</VirtualHost>

Add this line somewhere in the VirtualHost section: Protocols h2 http/1.1

Save this, close the file, and don’t forget to restart the Apache2 service:

service apache2 restart

If you’ve done all of this correctly, the HTTP/2 protocol will start working.

 

Link to comment
Share on other sites

I would be supprised if you not already using http2, if you on a relativly new server! ask your host, or just use the chrome inspect tool to check. Many of my site are already using it and I've not seen any noticeable speed change.

image.thumb.png.b997da1b7ccdd0a1a155dddb86dea5d9.png

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...