+2 votes
in Web & Google by (11k 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 (15.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.

Change 

server {

listen a.b.c.d:443;

to

server {

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

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

...