How to enable http/2 on the AEM dispatcher

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.



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/


<VirtualHost *:443>
  ProtocolsHonorOrder On

  Protocols h2 h2c http/1.1

  DocumentRoot /usr/apachecache/docs

  <Directory /usr/apachecache/docs>

    <IfModule disp_apache2.c>

      SetHandler dispatcher-handler


    AllowOverride None


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