CentOS 8 + http2

I’ve just setup a new server, my first with CentOS 8, the installer worked well and it’s set up nicely. Good job!

I was hoping with CentOS 8 + php-fpm (either 7,2, or with remi’s 7.3 or 7.4 software collections) I’d finally have support for http2, but everything still appears to be http1 and I can’t see options to change.

I’ve done some searching and have found some older questions, but the answers seemed to be that support for http2 would probably come once all supported Distro’s came with an Apache version which supports http2. I believe that time has come!

Any news on when this will be available, or am I simply overlooking a setting somewhere?

Apache 2.4.17 or newer supports http/2. It doesn’t automagically turn itself on, you need to enable it.

1 Like

Oh wow, that was easier than I’d expected.

CentOS 8 comes with Apache 2.4.37 and mod_http2 was already loaded (in /etc/httpd/conf.modules.d/10-h2.conf)

All I had to do was add “Protocols h2 h2c http/1.1” to /etc/httpd/conf/httpd.cond (I put it directly after the ‘Listen’ line).

All sites are now serving requests over http2

It would be nice to have an option in the GUI for ‘Protocols’, if there isn’t one already?

1 Like

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.