HTTP2 Configuration

From Lingoport Wiki
Revision as of 12:44, 17 April 2025 by Rwilliams (talk | contribs) (Created page with "HTTP2 enablement can be achieved via a reverse proxy hosted on the Linux system. The below instructions assume that the prior configuration instructions for HTTPS have already...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

HTTP2 enablement can be achieved via a reverse proxy hosted on the Linux system. The below instructions assume that the prior configuration instructions for HTTPS have already been carried out. These instructions will add HTTP2 support to that existing configuration. It is assumed that this will be on Apache in a CentOS / RHEL environment:

1. Edit the Apache SSL Configuration file, and example is shown below

vi /etc/httpd/conf.d/lingoport-apps-ssl.conf

2. Locate the section that the VirtualHost Directive is defined.

<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerName SERVER_URL_REPLACE_ME   # example: myserver.lingoport.io

    <IfModule http2_module>
        Protocols h2 http/1.1
    </IfModule>
    <IfModule !http2_module>
        Protocols http/1.1
    </IfModule>
    
    AllowEncodedSlashes NoDecode
    ProxyPreserveHost On
    ProxyRequests Off

    ...
</VirtualHost>
</IfModule>

3. Restart Apache to apply the settings

sudo systemctl restart httpd

4 Validation

One method to confirm that http2 is supported after restarting Apache is via curl. Simply run a curl command on the command-center site and the returned result will be the version of HTTP supported. A 2 indicates that that HTTP/2 is supported and the configuration was successful. If the return was a 1.1, then only version HTTP/1.1 support is provided.

$ curl -sI https://<FQDN>/command-center -o/dev/null -w '%{http_version}\n'
2


To continue on Command Center installation, please go to: