HTTP su HTTPs con gestione SSL e redirect (Nginx)

user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { server { listen 80; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name <dominio>; ssl_certificate /etc/nginx/SSL/<certificato>.pem; ssl_certificate_key /etc/nginx/SSL/<certificato>.key; ssl_session_cache builtin:1000 shared:SSL:10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4; ssl_prefer_server_ciphers on; access_log /var/log/nginx/access.log; …
Continue reading HTTP su HTTPs con gestione SSL e redirect (Nginx)