+2 votes
in Web & Google by (15.3k points)
I am using Apache as my webserver and Nginx as reverse proxy. I enabled HTTPS on my website and want to enable HTTP2 so that the wesbite performance is improved. How can I enable HTTP2 on my server.

1 Answer

0 votes
by (27.1k points)

I assume you have root access to modify configuration files. SSH to your server using root and go to the folder where vhosts of nginx are present. (on my server, it's /etc/nginx/conf.d/vhosts).

Open the .conf files and make the following change.


server {

listen a.b.c.d:443;


server {

listen a.b.c.d:443 ssl http2;

So basically, you need to append ssl http2 to the line with listen under server.