HTTP/2 Module Loading Issues. Env: RHEL 7.7 | Apache/2.4.6 | OpenSSH 1.0.2

Posted on

I have followed this tutorial Setting up HTTP/2 on your web server
But even after successful completion of all steps. I am getting httpd: Syntax error in /etc/httpd/conf/httpd.conf and /etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_http2.so into server: /etc/httpd/modules/mod_http2.so: cannot open shared object file: No such file or directory while running apachectl configtest
And after running a test i get below results:

$ curl -I -v -k https://google.com
* Connection to Proxy
> CONNECT google.com:443 HTTP/1.1
< HTTP/1.0 200 Connection established
HTTP/1.0 200 Connection established
> HEAD / HTTP/1.1
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
<Server: gws
Server:gws

Looks like responses such as HTTP/1.1 302 instead of 200’s and Server: gws instead of actual Apache/2.4.*(Red Hat) seems problematic, but i am unable to figure out where the problem is, any help will be greatly appreciated.