hunt695

Well-Known Member
Oct 30, 2019
49
7
8
croatia
cPanel Access Level
Root Administrator
Hi all,
I've enabled http2 mod and mod_mpm_event in EA, disabled mod_mpm_prefork.
Also have NGINX caching installed, cache cleared, but devtools show http/1.1 and all online scanners show: No HTTP/2 support.

What did I miss here?
Thanks
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! You didn't miss anything, but cPanel doesn't support http2 with Nginx. Details on that can be found here, as well as a possible workaround:

 

hunt695

Well-Known Member
Oct 30, 2019
49
7
8
croatia
cPanel Access Level
Root Administrator
Thanks for this, so it's actually only config thing, not the "not supported", I'm aware the config would get lost after updating nginx, but is it safe to do this?

Followed this:

Procedure
To enable this globally, add a new file ending in .conf such as http2.conf to the Nginx configuration folder located in /etc/nginx/conf.d and add the following contents.



server {

listen 443 ssl http2;
listen [::]:443 ssl http2;

}


Save the file and verify the Nginx configuration. Then, restart Nginx as well as PHP-FPM.

nginx -t

/scripts/restartsrv_nginx ; /scripts/restartsrv_apache_php_fpm

I then checked my file:
tail -f /var/log/nginx/access.log

and it showed:

HTTP/2.0

Even gtmetrix reported all is good now with http2 :)
 
Last edited: