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:
Comment changer la couleur de fond / Fond d'écran de l'écran de connexion Ubuntu 21.10
Installation d'une nouvelle version de Skype dans Ubuntu et LinuxMint
Installation beaucoup karnel et la virtualisation OpenVZ Debian 7
Partager un dossier et des fichiers sur Lan dans Ubuntu
My Weather Indicator est une application conçue spécifiquement pour Ubuntu 20.04