GNU/Linux >> Tutoriels Linux >  >> Ubuntu

Activation de SPDY et Strict-Transport-Security sur NginX dans Ubuntu 14.04

Dans Ubuntu 14.04, NginX a été compilé avec la capacité SPDY. Pour l'utiliser, il faut l'activer à l'intérieur du serveur {…} bloc pour chaque hôte virtuel.
ex.
server {
server_name mprofi.com www.mprofi.com;
root /var/www/mprofi.com;
index index.php;
#
# Added to handle HTTP and HTTPS and SPDY
listen 80;
listen 443 ssl spdy;
ssl_certificate /etc/letsencrypt/live/www.mysite.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.mysite.com/privkey.pem;
#
# ENABLE STRICKT TRANSPORT SECURITY and X-Frame-Options
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
add_header X-Frame-Options "DENY";
}

Redémarrez NginX
service nginx restart


Ubuntu
  1. Configuration de base de PHP 7 et Nginx sur Ubuntu 16.04 Linux

  2. Comment installer Nginx avec PHP5 et MySQL sur Ubuntu 11.10

  3. Installez Nginx et configurez l'hôte virtuel dans Ubuntu 20.04

  4. Installation et configuration de Php et Nginx sur Ubuntu 20.04

  5. Installer WordPress avec Varnish et Nginx sur Ubuntu

Installation de Nginx avec prise en charge de PHP5 et MySQL sur Ubuntu 8.10

Installez WordPress + Nginx, MariaDB et HHVM dans Ubuntu 16.04

Comment installer Docker dans Ubuntu 20.04 et exécuter Nginx Container

Comment activer TLS 1.3 dans Nginx sur Ubuntu 18.04 et 16.04

Comment installer et configurer Nginx dans Ubuntu 20.04 et Ubuntu 21.04

Comment installer et configurer Supervisor sur Ubuntu 20.04