How to enable http/2 on the AEM dispatcher

InfoPath will not be developed further

Act now.

All Blog Entries

What should be considered in a successful DevOps

Processes, Tools, Platform, Teams, Responsibility.

HTTP/2 as standard for the Apache dispatcher

 

 The transmission protocol http/2 is now supported by all modern web browsers. The two biggest advantages of the new protocol are:

  •  Parallel downloads are no longer blocked
  •  Server Push possible

 

 For these reasons, it makes sense to activate http/2. I will explain the necessary steps in this blog post. We will do the configuration so that there will be a fallback if the remote peer does not support the protocol.

 

 Prerequisite:

Apache version > 2.4.17

 

Enable HTTP/2 module

Apaches HTTP/2 is provided in the mod_http2 module and should be installed by default. Now you have to add the following lines to httpd.conf:

 

LoadModule http2_module modules/mod_http2.so

.......

<VirtualHost *:443>
  ProtocolsHonorOrder On

  Protocols h2 h2c http/1.1
  ServerName www.eggs.de

  DocumentRoot /usr/apachecache/docs

  <Directory /usr/apachecache/docs>

    <IfModule disp_apache2.c>

      SetHandler dispatcher-handler

    </IfModule>

    AllowOverride None

  </Directory>
</VirtualHost>

 

After restarting Apache, all connections should now be shipped with http/2.