VPS侦探论坛

 找回密码
 注册
查看: 1800|回复: 5

安装证书后浏览器提示不支持协议,麻烦军哥帮忙看看

[复制链接]
发表于 2022-12-29 22:21:57 | 显示全部楼层 |阅读模式

rt  附上截图:

  1. server
  2.     {
  3.         listen 80;
  4.         #listen [::]:80;
  5.         server_name www.xxxx.xx xxxx.xx;
  6.         index index.html index.htm index.php default.html default.htm default.php;
  7.         root  /home/wwwroot/www.xxxx.xx;

  8.         #include rewrite/thinkphp.conf;
  9.         #error_page   404   /404.html;

  10.         # Deny access to PHP files in specific directory
  11.         #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

  12.         include enable-php-pathinfo.conf;

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

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

  21.         location ~ /.well-known {
  22.             allow all;
  23.         }

  24.         location ~ /\.
  25.         {
  26.             deny all;
  27.         }


  28.         access_log  /home/wwwlogs/www.xxxx.xx.log;
  29.     }

  30. server
  31.     {
  32.         listen 443 ssl http2;
  33.         #listen [::]:443 ssl http2;
  34.         server_name www.xxxx.xx xxxx.xx;
  35.         index index.html index.htm index.php default.html default.htm default.php;
  36.         root  /home/wwwroot/www.xxxx.xx;

  37.         ssl_certificate /usr/local/nginx/conf/ssl/www.xxxx.xx/fullchain.cer;
  38.         ssl_certificate_key /usr/local/nginx/conf/ssl/www.xxxx.xx/www.xxxx.xx.key;
  39.         ssl_session_timeout 5m;
  40.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
  41.         ssl_prefer_server_ciphers on;
  42.         ssl_ciphers "TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-128-CCM-8-SHA256:TLS13-AES-128-CCM-SHA256:EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
  43.         ssl_session_cache builtin:1000 shared:SSL:10m;
  44.         # openssl dhparam -out /usr/local/nginx/conf/ssl/dhparam.pem 2048
  45.         ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;

  46.         include rewrite/thinkphp.conf;
  47.         #error_page   404   /404.html;

  48.         # Deny access to PHP files in specific directory
  49.         #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

  50.         include enable-php-pathinfo.conf;

  51.         location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  52.         {
  53.             expires      30d;
  54.         }

  55.         location ~ .*\.(js|css)?$
  56.         {
  57.             expires      12h;
  58.         }

  59.         location ~ /.well-known {
  60.             allow all;
  61.         }

  62.         location ~ /\.
  63.         {
  64.             deny all;
  65.         }

  66.         access_log  /home/wwwlogs/www.xxxx.xx.log;
  67.     }
复制代码


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-12-29 22:23:05 | 显示全部楼层


Cloudflare模式选的完全
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-12-29 22:23:44 | 显示全部楼层

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-12-29 22:25:09 | 显示全部楼层



http可以正常访问,用https访问就不行。443端口是打开的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2022-12-30 16:50:36 | 显示全部楼层

1、源站不使用cdn是否正常访问 https 站点
2、ssl证书改成cf自家的边缘证书
源站正常的话就是cf上的设置有问题

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

 楼主| 发表于 2023-1-7 22:43:53 | 显示全部楼层

感谢军哥百忙之中 回复我的问题 我已找到问题所在 是我源站的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-7-27 11:06 , Processed in 0.028607 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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