nginx配置SSL失败?

  • 回答 (0)
  • 关注 (0)
  • 查看 (64)

配置HTTPS不能被访问,求大神赐教。谢谢!我的nginx配置文件如下:

user root;

worker_processes 1;

error_log logs/error.log;

error_log logs/error.log notice;

error_log logs/error.log info;

#pid logs/nginx.pid;

events {

worker_connections 1024;

}

http {

include mime.types;

default_type application/octet-stream;

access_log logs/access.log;

sendfile on;

#tcp_nopush on;

#keepalive_timeout 0;

keepalive_timeout 65;

gzip on;

fastcgi_connect_timeout 600;

fastcgi_send_timeout 600;

fastcgi_read_timeout 600;

fastcgi_buffer_size 128k;

fastcgi_buffers 2 256k;

fastcgi_busy_buffers_size 256k;

fastcgi_temp_file_write_size 256k;

server{

listen 80;

server_name huoxiu666.cn;

charset utf-8;

location / {

root /opt/static/;

index index.html;

}

}

server{

listen 443;

server_name huoxiu666.cn;

ssl on;

ssl_certificate /usr/local/nginx/conf/1_huoxiu666.cn_bundle.crt;

ssl_certificate_key /usr/local/nginx/conf/2_huoxiu666.cn.key;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;

ssl_prefer_server_ciphers on;

location / {

root /opt/static/;

index index.html;

}

}

}

用户4197363用户4197363提问于

可能回答问题的人

  • 腾讯云域名团队

    10 粉丝0 提问4 回答
  • Jobs

    0 粉丝0 提问2 回答
  • Hcchy

    腾讯云 · 产品经理 (已认证)

    5 粉丝0 提问6 回答

扫码关注云+社区

领取腾讯云代金券