VPS侦探论坛

 找回密码
 注册
查看: 4228|回复: 4

help,军哥,lnmp1.3下https配置一直失败

[复制链接]
发表于 2016-12-4 17:56:29 | 显示全部楼层 |阅读模式

参考https://www.vpser.net/build/letsencrypt-free-ssl.html
https://www.vpser.net/manage/namecheap-free-ssl-nginx.html
这两个配置之后,http下没问题,但通过https访问时在chrome中提示
此网站无法提供安全连接

www.windcoder.com 发送的响应无效。
尝试运行 Windows 网络诊断。
ERR_SSL_PROTOCOL_ERROR

防火墙的443规则已添加,证书用的腾讯的
ngix上那个网站的配置信息如下:
  1. server
  2. {
  3. listen 80;
  4. #listen [::]:80;
  5. server_name www.windcoder.com windcoder.com;
  6. index index.html index.htm index.php default.html default.htm default.php;
  7. root /home/wwwroot/windcoder.com;
  8. include wordpress.conf;
  9. #error_page 404 /404.html;
  10. include enable-php.conf;

  11. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  12. {
  13. expires 30d;
  14. }

  15. location ~ .*\.(js|css)?$
  16. {
  17. expires 12h;
  18. }

  19. location ~ /\.
  20. {
  21. deny all;
  22. }

  23. access_log /home/wwwlogs/windcoder.com.log;
  24. }
  25. server {
  26. listen 443 ssl;
  27. #listen [::]:80;
  28. server_name www.windcoder.com;
  29. index index.html index.htm index.php default.html default.htm default.php;
  30. root /home/wwwroot/windcoder.com;
  31. ssl on;
  32. ssl_certificate /usr/local/nginx/keystore/1_www.windcoder.com_bundle.crt;
  33. ssl_certificate_key /usr/local/nginx/keystore/2_www.windcoder.com.key;
  34. ssl_session_timeout 5m;
  35. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  36. ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
  37. ssl_prefer_server_ciphers on;

  38. include wordpress.conf;
  39. #error_page 404 /404.html;
  40. location ~ [^/]\.php(/|$){
  41. # comment try_files $uri =404; to enable pathinfo
  42. try_files $uri =404;
  43. fastcgi_pass unix:/tmp/php-cgi.sock;
  44. fastcgi_index index.php;
  45. include fastcgi.conf;
  46. #include pathinfo.conf;
  47. }

  48. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  49. {
  50. expires 30d;
  51. }

  52. location ~ .*\.(js|css)?$
  53. {
  54. expires 12h;
  55. }

  56. location ~ /\.
  57. {
  58. deny all;
  59. }

  60. access_log /home/wwwlogs/https.windcoder.com.log;
  61. }
复制代码

[ 本帖最后由 windcoder 于 2016-12-4 17:59 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-5 09:49:05 | 显示全部楼层

回复 1# 的帖子



可能证书有问题吧
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-12-5 14:08:38 | 显示全部楼层

回复 1# 的帖子


你太搞笑了,百度云加速的https访问是收费的,而且需要将证书上传到百度云控制台。你是这么做的吗?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-11 19:44:27 | 显示全部楼层



我搞的腾讯云的免费证书也不能用
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-12-12 13:39:05 | 显示全部楼层

原帖由 ceshi132 于 2016-12-5 14:08 发表
你太搞笑了,百度云加速的https访问是收费的,而且需要将证书上传到百度云控制台。你是这么做的吗?
我又没用他的https加速。。

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-3-19 11:27 , Processed in 0.026923 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表