Skip to content

Instantly share code, notes, and snippets.

@abelcallejo
Last active September 23, 2020 04:23
Show Gist options
  • Select an option

  • Save abelcallejo/f6639f1f655e80691bb72f78e213f296 to your computer and use it in GitHub Desktop.

Select an option

Save abelcallejo/f6639f1f655e80691bb72f78e213f296 to your computer and use it in GitHub Desktop.
Configuring Apache to serve HTTP/2

Configuring Apache to serve HTTP/2

Step 1

LoadModule http2_module modules/mod_http2.so

Step 2

<IfModule mod_http2.c>
    Protocols h2 h2c http/1.1
</IfModule>

Step 3

Change the default configuration

yum

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
#LoadModule mpm_worker_module modules/mod_mpm_worker.so
#LoadModule mpm_event_module modules/mod_mpm_event.so

into

#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
#LoadModule mpm_worker_module modules/mod_mpm_worker.so
LoadModule mpm_event_module modules/mod_mpm_event.so

Step 4

Enable HTTPS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment