nginx – ssllabs一直说sslv3没有启用

前端之家收集整理的这篇文章主要介绍了nginx – ssllabs一直说sslv3没有启用前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

https://www.ssllabs.com/ssltest/analyze.html?d=cablework.co

我无法弄清楚为什么一直说“C”.我已禁用SSLv3.

这是我的配置文件

server {
    listen 80;
    listen 443 ssl spdy;
    server_name cablework.co;
    ssl_certificate /etc/Nginx/ssl/cablework.co.pem;
    ssl_certificate_key /etc/Nginx/ssl/server.key;
    return 301 https://www.cablework.co$request_uri;
}
server {
    listen 443 ssl spdy;

    ssl_certificate /etc/Nginx/ssl/cablework.co.pem;
    ssl_certificate_key /etc/Nginx/ssl/server.key;

    ssl_ciphers 'AES256+EECDH:AES256+EDH';

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_session_cache shared:SSL:10m;

    ssl_stapling on;
    ssl_stapling_verify on;
    resolver 8.8.4.4 8.8.4.4 valid=300s;
    resolver_timeout 10s;

    ssl_prefer_server_ciphers on;
    ssl_dhparam /etc/Nginx/ssl/dhparam.pem;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.PHP?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log off;
    error_log  /var/log/Nginx/www.cablework.co-error.log error;

    error_page 404 /index.PHP;

    location ~ \.PHP${
        fastcgi_split_path_info ^(.+\.PHP)(/.+)$;
        fastcgi_pass unix:/var/run/PHP5-fpm.sock;
        fastcgi_index index.PHP;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }

    add_header Strict-Transport-Security max-age=63072000;
    add_header X-Frame-Options DENY;
    add_header X-Content-Type-Options nosniff;

    root /home/kryptonit3/cablework/public;
    index index.html index.htm index.PHP;
    server_name www.cablework.co;
}
最佳答案
您忘了为名为cablework.co的服务器指定ssl_protocols和ssl_ciphers.因此默认值 – 无论它们是什么 – 都会被使用.
原文链接:https://www.f2er.com/nginx/435329.html

猜你在找的Nginx相关文章