• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Notes to Self

  • Aviation Weather from NOAA Plugin
    • KZZV
    • Bad Shortcode
    • Simple Metar
  • Meetings
  • Meetings Map

Mark Chouinard / December 18, 2019

How I Enabled HTTP/2 with Apache on Ubuntu 18.04

Switch from mod_php to FPM:

sudo apt install php7.4-fpm
sudo a2enmod proxy_fcgi
sudo a2enconf php7.4-fpm
sudo a2dismod php7.4
sudo a2dismod mpm_prefork
sudo a2enmod mpm_event
sudo systemctl restart apache2

Enable mod_http2:
sudo a2enmod http2
sudo systemctl restart apache2

Add this to /etc/apache2/apache2.conf to enable HTTP/2:
Protocols h2 http/1.1

Verify at https://http2.pro/

Filed Under: Ubuntu Tagged With: apache, digitalocean, HTTP/2

Primary Sidebar

Footer

Copyright © 2021 · machouinard · Log in