Skip to content

Instantly share code, notes, and snippets.

@lnrsoft
Created December 21, 2018 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lnrsoft/d4e3ff5aa7dac775c0936a4fd5f2d595 to your computer and use it in GitHub Desktop.
Save lnrsoft/d4e3ff5aa7dac775c0936a4fd5f2d595 to your computer and use it in GitHub Desktop.
Enabling HTTP2 in Apache on Ubuntu 18.04
$ sudo apt-get install php7.2-fpm
$ sudo a2enmod proxy_fcgi
$ sudo a2enconf php7.2-fpm
$ sudo a2dismod php7.2
$ sudo a2dismod mpm_prefork
$ sudo a2enmod mpm_event
$ sudo service apache2 restart
#nstalling and Enabling HTTP/2 in Apache
#Enable the module mod_http2:
$ sudo a2enmod http2
$ sudo service apache2 restart
#Enable the HTTP/2 protocol by adding the following to /etc/apache2/apache2.conf:
Protocols h2 http/1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment