Tag Archives: lightsail

Http/2, Apache, & Lightsail

This post only covers the technical details of how to implement http/2 on an Apache web server running in Amazon Linux on Lightsail. It does not go into the details of what http/2 is or why use it. For that information, I suggest https://http2.github.io.

First you have to switch the Multi-Processing Modules (MPMs) from pre-fork (the default) to another one. I chose the event mpm for no particular reason.

To do this, edit /etc/httpd/conf.modules.d/00-mpm.conf and make the following changes …

Comment out the following line…

#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

… and uncomment the following line …

LoadModule mpm_event_module modules/mod_mpm_event.so

Next, you have to activate the http2 protocol. You can do this at the virtual host level or the server level.

I activated it at the server level by editing the /etc/http/conf/httpd.conf file and adding the following line…

Protocols h2 h2c http/1.1

After the changes are made, restart the server with the following command…

service httpd restart

Your apache server is now serving content using http/2.

You can verify that the server is handling http/2 by looking at the web server logs and looking for “HTTP/2.0”.

Something like this:

1.2.3.4 – – [07/Mar/2019:10:59:48 -0600] “GET / HTTP/2.0” 200 4646 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36”

NOTE: web crawlers (Google, Bing, etc) will continue to use http/1.1, so don’t worry about that.

Related posts ...
As a follow-on to my first post about Amazon Lightsail, here's some additional information that
Although not directly supported, it's quite possible to use the LetsEncrypt certbot client on Amazon
Ha! I'll be you thought this blog was dead. Well, truth be told, it was
As part of my migration to the cloud, I terminated the Comcast Business internet service

More on Amazon Lightsail

As a follow-on to my first post about Amazon Lightsail, here’s some additional information that I’ve discovered…

Continue reading
Related posts ...
This post only covers the technical details of how to implement http/2 on an Apache
Although not directly supported, it's quite possible to use the LetsEncrypt certbot client on Amazon
Ha! I'll be you thought this blog was dead. Well, truth be told, it was
Ginny has been bugging me about the problem she's been having posting to her blog

LetsEncrypt certbot and Lightsail

Although not directly supported, it’s quite possible to use the LetsEncrypt certbot client on Amazon Lightsail Linux.

First of all … what is LetsEncrypt?

Let’s Encrypt is a free service that offers basic SSL certificates any web site.  The certificates are good for 90 days but can be renewed indefinitely. With the proper software, the installation & renewal of the certificates can be fully automated.

There are a few things to be aware of and workarounds that need to be done.

First, download the certbot-auto client itself…

Continue reading

Related posts ...
If you're seeing a lot of messages about untrusted TLS connections in your mail log

We bit the bullet ... we got iPhones.   Our Verizon cell phone contract has

Ha! I'll be you thought this blog was dead. Well, truth be told, it was

Fair warning: This post is pretty darn technical and is of little interest to people

Amazon Lightsail


Ha! I’ll be you thought this blog was dead.

Well, truth be told, it was pretty close … but you never know when inspiration will strike.

So a little while ago I had a hardware failure on one my servers. This incident has given me the incentive to try and move some of the servers I host to other machines … where I don’t have to worry about the hardware end of things.

To that end, I started looking at hosting providers.  One of the providers I’m looking at is Amazon Lightsail.

Amazon Lightsail provides micro instances of their AWS compute service at very good prices.

A 512mb / 20gb Linux instance only costs $5 / month and the first month is free.

So I’ve been playing around with that and like it a lot.

I’ve currently got a handful of sites moved over to Lightsail.

I have encountered a few gotcha’s though …

Continue reading

Related posts ...
This post only covers the technical details of how to implement http/2 on an Apache

As a follow-on to my first post about Amazon Lightsail, here's some additional information that

Although not directly supported, it's quite possible to use the LetsEncrypt certbot client on Amazon

As part of my migration to the cloud, I terminated the Comcast Business internet service