awsmean

Enable HTTP/2 support with Apache

Bitnami stacks ship with the mod_http2 module installed, but it is not enabled by default. To enable this module, follow these instructions. Once the module is active, follow the steps below:

  • Add the following lines in the default Apache virtual host configuration file at /opt/bitnami/apache2/conf/bitnami/bitnami.conf, inside the default VirtualHost directives, so that it looks like this:

    <VirtualHost _default_:80>
      ...
      Protocols h2 h2c http/1.1
    </VirtualHost>
    
    ...
    
    <VirtualHost _default_:443>
      ...
      Protocols h2 h2c http/1.1
    </VirtualHost>
    

    Repeat the above change for any other virtual hosts you may have defined.

  • After modifying the Apache configuration files, restart Apache to apply the changes.

    $ sudo /opt/bitnami/ctlscript.sh restart apache