Configuring HTTP/2 Support

Prerequisites

The Apache Portable Runtime (APR) Library has to be installed on the engine host. The default location of the library is

  • Linux: /user/local/apr/lib
  • Windows: $CATALINA_HOME/bin

If the APR library is installed on non-default location, APR_LIB_PATH Runtime context variable can be set to point to correct location. For more information on installation of APR, refer: Apache Tomcat Native Library Documentation.

Perform the following steps to configure HTTP/2 support:

Procedure

  1. On the Silver Fabric Administration Tool, go to Stacks > Components.
  2. Select the Edit Component action for to your component.
  3. Click Add/Edit Component Features.
  4. Select the HTTP Support feature and click Edit.
  5. Select HTTP/2 Enabled check box on the pop-up that is displayed. Clear any other HTTP configuration check boxes then press OK.
  6. Select Add/Override/Edit Enabler and Component-Specific Runtime Context Variables and configure the following environment variables as necessary to use a custom certificate:
    • CERTIFICATE_FILE — File location of the server certificate.
    • CERTIFICATE_KEY_FILE — File location of the server certificate key.
    • APR_LIB_PATH — HTTP/2 protocol requires the Apache Portable Runtime (APR) library installed on the enabler to work. The variable points to the directory where the APR library is installed. This variable is set with default values /usr/local/apr/lib for Linux and Solaris, and it is set as $ {CATALINA_HOME}/bin for Windows. New values can be set for this variable to point it to a custom directory.
    Click OK when finished. You can now upload your keystore files.
  7. Select Add/Override/Customize Enabler and Component-Specific Content Files.
  8. Click Upload.
    The Add File screen is displayed.