A partir HTTP / 2 sur le serveur avec Nginx
Le tutoriel suivant décrit comment obtenir le support du protocole HTTP / 2 w Nginx. Nous avons fait une très simplement façon de commencer.
Wymagania ?
Nginx w wersji 1.9.5 wersję możemy sprawdzić wykonująć polecenie na serwerze: nginx -v
Version openssl 1.0.2 wersję możemy sprawdzić wykonująć polecenie na serwerze: OpenSSL version
Całość ogranicza się do edycji naszego vhosta a dokładniej paramrtru listen
Odnajdujemy
1 | listen 443 ssl |
Je change la
1 | listen 443 ssl http2; |
Dokonujemy przeładowania Nginx i gotowe.
1 | sudo systemctl reload nginx.service |
Vhost powinien wyglądać podobnie do tego:
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; } |
entrées connexes:
Alternative intéressante à Terminus mastic
Configuration du pare-feu UFW sur Ubuntu 20.04
Cube rond: Impossible d'enregistrer nouveau mot de passe. Erreur de connexion. échec Recv: Connexion réinitialisée par les pairs Nap ...
Noyau 5.19 Installation sous Ubuntu 22.04
Installation IonCube Chargeur Centos 8





