HTTP/2 not working

itsensellc

Verified User
Joined
Jul 15, 2005
Messages
53
Hello,

Despite having http2=1 in the directadmin.conf, Apache 2.4.54 and OpenSSL 1.0.2k and having totally rebuilt Apache and PHP, HTTP/2 is not working. It's my understanding with the latest version of Custombuild this should be automatically built when http2=1 is enabled.

Any thoughts on what I might be missing? Thanks in advance.
 
Which php_mode are you using?

What is the result of checking here?
https://http2.pro/
FPM. Turns out the issue had nothing to do with my configuration at all but rather than none of the HTTP config files specified the Protocols so Apache was just defaulting to 1.1. I found this nugget that solved my problem:

echo 'ProtocolsHonorOrder On' >> /etc/httpd/conf/extra/httpd-includes.conf
echo 'Protocols h2 h2c http/1.1' >> /etc/httpd/conf/extra/httpd-includes.conf

I'm curious though why I had to do that. Seems like that would be handled by DA.
 
Seems like that would be handled by DA.
Yes correct. You normally do not have to do that. Changing the config to http2 should be enough. Unless you changed the apache_mpm setting in the /usr/local/directadmin/custombuild/options.conf file. Normally the "auto" setting should be good there, it should not be set to prefork for use with httpd2 if i'm not mistaken.
 
Yes correct. You normally do not have to do that. Changing the config to http2 should be enough. Unless you changed the apache_mpm setting in the /usr/local/directadmin/custombuild/options.conf file. Normally the "auto" setting should be good there, it should not be set to prefork for use with httpd2 if i'm not mistaken.
Nope mine is set to event since I'm using FPM (it was auto - I just tried event for kicks and grins.) I manage a second DA server and this same issue with HTTP/2 is present there so it feels like there is a DA bug of some kind. I have a ticket open with them as well but since I have a legacy license I'm not sure if they'll look further into it or not. I feel like this was working at some point and then stopped working but I'm not sure what that some point is.
 
Back
Top