skip to content

IT and more

Willkommen auf der IT Seite. 
Hier möchte ich einige Howtos, Anleitungen und andere IT-Relevante Dinge zum Download bereitstellen.

Bitte beim Download zur weiteren Verwendung aber auf das Copyright achten!

Bei weiteren Fragen könnt ihr mir auch eine Mail zukommen lassen.

Linux: enable HTTP/2 on Apache Webserver with Debian 9

Posted by Benjamin Wagner (benjamin) on Feb 16 2019

Configuration Changes for HTTP/2

You cant enable HTTP/2 on Debians apache Webserver if MPM-Prefork is installed. To enable HTTP/2 run the following steps:

1. Switching Apache’s PHP Module from MPM Prefork to Event

Run the following commands:

sudo apt-get install php7.0-fpm
sudo a2enmod proxy_fcgi
sudo a2enconf php7.0-fpm
sudo a2dismod php7.0
sudo a2dismod mpm_prefork
sudo a2enmod mpm_event
sudo service apache2 restart

 

2. Installing and Enabling HTTP/2 in Apache

Enable the HTTP/2 protocol by adding the following to /etc/apache2/apache2.conf or to the virtual host file /etc/apache2/sites-enabled/000-default-le-ssl.conf

Protocols h2 h2c http/1.1

Enable the module mod_http2:

sudo a2enmod http2
sudo service apache2 restart

3. Test the changes

Visit https://cdnsun.com/knowledgebase/tools/http2-support-test and check your page for enabled HTTP/2

Last changed: Feb 16 2019 at 01:23

Back

Kommentar

email address:
Homepage:
URL:
Comment:

Name:

E-Mail (required, not public):

Website:

Kommentar :

Prüfziffer:
9 plus 3  =  Bitte Ergebnis eintragen

Up
K