一:证书来源 :
1:腾讯云, https://cloud.tencent.com/document/product/400/35244
2:Let’s Encrypt
二:问题:
浏览器访问,证书显示是正确的,但是页面返回一个“The site is under construction” 404错误.整个网站就一个index.htm的静态页面。
更严重的问题是,日志没有返回任何错误
三:网站配置:
今天新配置的虚拟VPS,系统是centos7 ,jexus 版本是6.1以上,今天最新安装的(2019//11/24)。
prot=443
root=/ /home/wwwroot/www.ufile.app/
hosts=www.ufile.top,ufile.top
# addr=0.0.0.0
# CheckQuery=false
NoLog=false
# AppHost={CmdLine=/usr/local/x/xx;AppRoot=/usr/local/x;Port=5000}
# NoFile=/index.aspx
# Keep_Alive=false
UseGZIP=true
UseHttps=true
ssl.certificate=/home/wwwroot/www.ufile.app/1_www.ufile.top_bundle.crt
ssl.certificatekey=/home/wwwroot/www.ufile.app/2_www.ufile.top.key
ssl.protocol=TLSv1.2
ssl.ciphers=ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE
# DenyFrom=192.168.0.233, 192.168.1.*, 192.168.2.0/24
# AllowFrom=192.168.*.*
# DenyDirs=~/cgi, ~/upfiles
indexes=index.htm,index.html
# rewrite=^/.+?\.(asp|php|cgi|pl|sh)$ /index.aspx
# reproxy=/bbs/ http://192.168.1.112/bbs/
# host.Redirect=abc.com www.abc.com 301
# ResponseHandler.Add=myKey:myValue
# Jexus php fastcgi address is '/var/run/jexus/phpsvr'
#######################################################
# fastcgi.add=php|socket:/var/run/jexus/phpsvr
# php-fpm listen address is '127.0.0.1:9000'
############################################
# fastcgi.add=php|tcp:127.0.0.1:9000
四:我尝试的几个方法都无效
1:分别使用腾讯云,Let’s Encrypt的证书都出现以上问题。
2:参考文档:
申请Let's Encrypt永久免费SSL证书过程教程及常见问题,及续期
https://blog.csdn.net/u013378306/article/details/80030405
https://blog.csdn.net/sD7O95O/article/details/78097326
作者:linuxlike 发布时间:19年11月24日 可选操作:
删除 回复你是用域名访问的,还是用IP地址访问的?
那个提示,是找不到网站的意思。找不到网站,只有两种可能:
1,你网站配置文件中hosts填的是域名,但是你在浏览器中用的是IP地址访问,没有用域名,所以服务器得不到host,也就找不到对应的站;
2,你用的浏览器没有向服务器提供域名,服务器所以找不到对应的网站。
作者:yunei 发布时间:19年11月26日 可选操作:
删除 回复