Starting HTTP / 2 on the server with Nginx
The following tutorial describes how to obtain support for the HTTP protocol / 2 w Nginx. We made in a very simply way to get started.
Requirements ?
Nginx version 1.9.5 the version can be checked by executing the command on the server: nginx -v
Openssl version 1.0.2 the version can be checked by executing the command on the server: OpenSSL version
Everything is limited to editing our vhost, and more specifically the listen parameter
We find
1 | listen 443 ssl |
I change the
1 | listen 443 ssl http2; |
We reload Nginx and it's ready.
1 | sudo systemctl reload nginx.service |
Vhost should look similar to this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name example.com; root /path/to/public; ssl_certificate /path/to/certificate.crt; ssl_certificate_key /path/to/private.key; ssl_protocols TLSv1.2; } |
Related entries:
Configuration of the UFW firewall on Ubuntu 22.04
gconf-service gconf-service-backend gconf2-common libappindicator1 libc++1 libc++1-9 libc++abi1-9 libdbusmenu-gtk4 libgail-common libgail18 libgconf-2-4 libgtk2.0-0 libgtk2.0-bin libgtk2.0-commonAll-in-one voice and text chat for gamers
All-in-one voice and text chat for gamers that's free 20.04
Installing the Slack Client in Ubuntu 20.04 / Linux Mint 20
Perfect server on Ubuntu 18.04 Nginx, MySQL, PHP, Postfix, BIND, Dovecot, Pure-FTPD z panelem IS...
Basics of MySQL in Linux console





