GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Abilitazione di SPDY e Strict-Transport-Security su NginX in Ubuntu 14.04

In Ubuntu 14.04 NginX è stato compilato con la funzionalità SPDY. Per utilizzarlo è necessario abilitarlo all'interno del server{…} blocco per ogni host virtuale.
es.
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";
}

Riavvia NginX
service nginx restart


Ubuntu
  1. Configurazione di base di PHP 7 e Nginx su Ubuntu 16.04 Linux

  2. Come installare Nginx con PHP5 e MySQL su Ubuntu 11.10

  3. Installa Nginx e configura l'host virtuale in Ubuntu 20.04

  4. Installazione e configurazione di Php e Nginx su Ubuntu 20.04

  5. Come installare e configurare PHP e Nginx (LEMP) su Ubuntu 20.04

Installazione di Nginx con supporto PHP5 e MySQL su Ubuntu 8.10

Installa WordPress + Nginx, MariaDB e HHVM in Ubuntu 16.04

Come installare Docker in Ubuntu 20.04 ed eseguire Nginx Container

Come abilitare TLS 1.3 in Nginx su Ubuntu 18.04 e 16.04

Come installare e configurare Nginx in Ubuntu 20.04 e Ubuntu 21.04

Come installare e configurare Supervisor su Ubuntu 20.04