Ubuntu

Apache2: How to Enable HTTP/2 on Ubuntu 16.04

Submitted by admin on Thu, 01/05/2017 - 17:10

HTTP/2 has been supported since Apache 2.4.17. I tried sudo a2enmod http2 on this Ubuntu 16.04 host, however it said ERROR: Module http2 does not exist!. Looks I needed to upgrade Apache2 as follows:
sudo add-apt-repository -y ppa:ondrej/apache2
sudo apt-key update
sudo apt-get update
sudo apt-get --only-upgrade install apache2 -y

Select Y (Note that this will overwrite your current configuration; therefore do backup of apache2.conf if necessary.
*** apache2.conf (Y/I/N/O/D/Z) [default=N] ?

Apache2: How to Setup SSL (Self-signed Certificate) on Ubuntu 16.04 TLS

Submitted by admin on Wed, 03/09/2016 - 23:07

Install openssl
==================
sudo apt-get install openssl

Create a select key
==================

e.g. server.key
# Do not use 2048 byte key - It does not work on modern browsers.
sudo openssl genrsa -out server.key 4096 # e.g. no password

Alternative: with a password (e.g. server.key)
# Do not use 2048 byte key - It does not work on modern browsers.
sudo openssl genrsa -des3 -out server.key 4096

Create a public key
==================