Board logo

标题: [求助] wdCP配置ssl使用https无法访问 [打印本页]

作者: mrdede    时间: 2018-5-9 13:08     标题: wdCP配置ssl使用https无法访问

wdCP配置ssl使用https无法访问,http访问正常。
环境:
wdCP v3.2.21
centos7.1
web服务器nginx+apache
防火墙已开启443端口
域名解析正常(因为htpp://域名/ 的访问是正常的)
阿里云免费证书
已上传“域名.pem”和“域名.key”文件到目录/www/wdlinux/nginx/conf/cert下
配置成http和https可同时访问的

配置文件来默认的,如下:
  1. server {
  2.         listen       80;
  3.         root /www/web/a_xxxxxx_com/public_html;
  4.         server_name a.xxxxxx.com a.xxxxxx.com;
  5.         index  index.html index.php index.htm;
  6.         error_page  400 /errpage/400.html;
  7.         error_page  403 /errpage/403.html;
  8.         error_page  404 /errpage/404.html;
  9.         error_page  503 /errpage/503.html;
  10.         location ~ \.php$ {
  11.                 proxy_pass http://127.0.0.1:88;
  12.                 include naproxy.conf;
  13.         }
  14.         location ~ /\.ht {
  15.                 deny  all;
  16.         }
  17.         location / {
  18.                 try_files $uri @apache;
  19.         }
  20.         location @apache {
  21.                  internal;
  22.                  proxy_pass http://127.0.0.1:88;
  23.                  include naproxy.conf;
  24.         }
  25. }

  26. server {
  27.         listen       443;
  28.         root /www/web/a_xxxxxx_com/public_html;
  29.         ssl                  on;
  30.         ssl_certificate      cert/a.xxxxxx.com.pem;
  31.         ssl_certificate_key  cert/a.xxxxxx.com.key;
  32.         ssl_prefer_server_ciphers on;
  33.         ssl_session_timeout 10m;
  34.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  35.         ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
  36.         server_name a.xxxxxx.com a.xxxxxx.com;
  37.         index  index.html index.php index.htm;
  38.         error_page  400 /errpage/400.html;
  39.         error_page  403 /errpage/403.html;
  40.         error_page  404 /errpage/404.html;
  41.         error_page  503 /errpage/503.html;
  42.         location ~ \.php$ {
  43.                 proxy_pass http://127.0.0.1:88;
  44.                 include naproxy.conf;
  45.         }
  46.         location ~ /\.ht {
  47.                     deny  all;
  48.             }
  49.         location / {
  50.                 try_files $uri @apache;
  51.         }
  52.         location @apache {
  53.                  internal;
  54.                  proxy_pass http://127.0.0.1:88;
  55.                  include naproxy.conf;
  56.         }
  57. }
复制代码
SSH查询商品状态:
  1. tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN
复制代码
使用我的本地电脑nmap工具查询443端口状态:
  1. PORT    STATE    SERVICE
  2. 443/tcp filtered https
复制代码
弄了好几天了,我现在真是想不明白我错在哪里了?!
请高手帮着分析分析,指点指点,不胜感激!
作者: lumize    时间: 2018-8-11 00:19

你找到错误了吗》?我也弄了好几天了就是不行!找不到错误!跟你的问题差不多




欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2