主机Apache+阿里云免费证书,
H5和公众号正常,小程序开发IDE中左边正常能登陆, 但预览到手机上显示不了产品, 授权登陆总显示请求失败, 在调试模式看到 Fail ssl hand shake error
原来当时根据百度来的相关教程没有配置中间证书(chain.crt), 配置好中间证书就正常了.
SSLEngine on AllowEncodedSlashes On ServerName myshop.myerp.top:443 SSLCertificateFile "${SRVROOT}/conf/ssl/2830277_myshop.myerp.top_public.crt" SSLCertificateKeyFile "${SRVROOT}/conf/ssl/2830277_myshop.myerp.top.key" SSLCertificateChainFile "${SRVROOT}/conf/ssl/2830277_myshop.myerp.top_chain.crt" DocumentRoot "${SRVROOT}/myshop/public" CustomLog "${SRVROOT}/logs/ssl_request.log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" Options Indexes Includes FollowSymLinks AllowOverride AuthConfig Limit FileInfo Require all granted AllowEncodedSlashes On 也是必须的.