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:
Is there a way to enable http2 by default on ea-nginx on WHM 94? I can go into each domain's .conf file in /etc/nginx/conf.d/ and add "http2" for connections to port 443, but this seems inefficient (and also at risk of being disabled with a future server update). I'm trying to wring every bit of...
forums.cpanel.net
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
