[Server] Nginx Https配置 及 Firefox提示“此页面使用较弱加密”
Nginx Https配置
应用HTTPS后,Firefox 提示Nginx网站 “此页面使用较弱加密”。
cd /etc/nginx/conf.d
sudo nano nginx.conf
sudo nginx -s reload
nginx.conf
server{
listen 80;
server_name example.com www.example.com;
return 301 https://www.example.com$request_uri;
}
server {
listen 443 ssl http2; #ssl http2
#ssl on;
ssl_certificate /home/data/cert/*.site.crt;
ssl_certificate_key /home/data/cert/*.site.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2; #TLSv1.1 TLSv1.2
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
location / {
root /home/data/www;
index index.html index.htm;
}
}