HTTP2 activation apache2

apache2ctl -version  si < 2.4.17 il faut bricoler -> sinon on passe à la fin

****Bricolage ****

ajouter « deb http://http.debian.net/debian testing main »  dans /etc/apt/sources.list.d/testing.list

ajouter dans /etc/apt/preferences.d/testing

Package: *
Pin: release a=testing
Pin-Priority : 300

–> apt-cache policy apache2  ->  testing doit aparaitre en haut

apt-get install -y -t testing apache2

***********

a2enmod http2

apachectl -t

Dans /etc/apache2/conf-available/http2.conf

Protocols h2 h2c http/1.1
H2Direct on
H2StreamMaxMemSize 5120000000

H2Push on
H2PushPriority * after
H2PushPriority text/css before
H2PushPriority image/jpeg after 32
H2PushPriority image/png after 32
H2PushPriority application/javascript interleaved

SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite ‘EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS’

a2enconf http2

dans le .conf du vhost : Protocols h2 http/1.1

a2dismod mpm_itk

a2dismod mpm_prefork

a2enmod mpm_worker

apachectl -t

/etc/init.d/apache2 stop

/etc/init.d/apache2 start

test en ligne ex :ICI