Kategorie: Linux

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

listen 443 ssl

I change the

listen 443 ssl http2;

We reload Nginx and it's ready.

sudo systemctl reload nginx.service

Vhost should look similar to this:

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;

}

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu