Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Enable http/2 #146

Closed
stevenrombauts opened this issue May 30, 2019 · 1 comment · Fixed by #147
Closed

Enable http/2 #146

stevenrombauts opened this issue May 30, 2019 · 1 comment · Fixed by #147
Milestone

Comments

@stevenrombauts
Copy link
Member

stevenrombauts commented May 30, 2019

Enable http/2 protocol.

Links:

@stevenrombauts stevenrombauts added this to the 1.6 milestone May 30, 2019
@stevenrombauts stevenrombauts self-assigned this May 30, 2019
@stevenrombauts
Copy link
Member Author

stevenrombauts commented May 30, 2019

Installing and enabling the http2 module in Apache:

# Create the .load config file
echo "LoadModule http2_module /usr/lib/apache2/modules/mod_http2.so" | sudo tee /etc/apache2/mods-available/http2.load

# Enable the module
sudo a2enmod http2

# Enable the h2 protocol
echo -e "\nProtocols h2 http/1.1\n" | sudo tee -a /etc/apache2/apache2.conf 

# Restart Apache
box server:restart apache2

On your host machine, verify that the connection is now upgraded to HTTP/2 by checking the output from this cURL request:

curl --http2 -sI -k https://joomla.box/ -o/dev/null -w '%{http_version}\n'

It should return 2 (http version).

If it's not working, double check that Apache is not using the prefork MPM module:

sudo apache2ctl -M | grep prefork

If yes, disable it with sudo a2dismod prefork and replace by worker sudo a2enmod worker

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant