Enable HTTP/2 in Cpanel Server
HTTP/2 only work with mod_worker or mod_event. if you use other mpm modulesm you need to swith to worker or event.
To install http2, login to WHM as user root. Go to
1 |
WHM > EasyApache 4 > Currently Installed Packages > Customize |
Now under Apache Modules, search for “http2”. Use the selector on right side to install it. Click “Next” until it it reach provision page. Click “Provision”.
Configuration for http2 located at
1 2 3 4 5 6 |
[root@ip-172-31-47-93 ~]# cat /etc/apache2/conf.d/http2.conf <IfModule http2_module> LogLevel http2:info Protocols h2 h2c http/1.1 </IfModule> [root@ip-172-31-47-93 ~]# |
You can verify HTTP2 work for your site at
https://tools.keycdn.com/http2-test
Most browsers only support HTTP2 over SSL, so make sure you have SSL (https://) enabled.
See Cpanel Server