How to force HTTPS on plesk so it enables HTTP2

Google is punishing HTTP1.1 pages and sites with no SSL in its search results and now also in chrome. Telling the users that this page is unsafe.
To enable the faster, more secure protocol in the most recent plesk, you need to install a Free LetsEncrypt SSL certificate in plesk.
Then do these stepps in your plesk panel under “apache & plesk settings”:

And under “Additional nginx directives”
if ($ssl_protocol = “”) {
rewrite ^/(.*) https://$server_name/$1 permanent;

Under “Additional directives for HTTP” you enter this:

RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,QSA]

This is the perfect time to also enable nginx or add gzip compression for both servers.