欢迎进入广州凡科互联网科技有限公司网站
全国服务热线
4000-399-000
手机网站建设有哪-宝塔"在未指定SSL默认站点时
时间: 2021-04-19 22:58 浏览次数:
您当今的部位: » 新闻资讯目录 » 宝塔面板"在未特定SSL默认设置站点时,未打开SSL的站点应用HTTPS会立即浏览到已打开SSL的站点"的难题处理方法 宝塔面板"在未特定SSL默认设置站点时
--------

手机网站建设有哪

-------2020⑿-02

宝塔面板里面管理方法了多个网站,有的网站有ssl,有的沒有,有一天被顾客告之了其网站的搜狗搜索数据库索引被定项到了另外一个启用htt凡科抠图的网站,很疑惑,就科学研究了下。 原先宝塔面板网站设定里,在SSL中提醒“在未特定SSL默认设置站点时,未开启SSL的站点应用HTT凡科抠图会立即浏览到已开启SSL的站点”,也就是说要是有一个启用了ssl的站,别的站的ssl沒有启用时,都会被指向到这个启用ssl的站,而检索模块无论你有木有,只要用ssl去抓取,因此才会出現以上的状况。

有关这类状况,科学研究了下,有两个处理方法: 一个是在网上找的,给沒有或不需要ssl的网站配备一个失效的ssl,让他不指向到别的ssl网站便可,內容以下 .key文档编码:

-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAlcZJiGVMbbzrWzkmhBJxjoMbFSSCtLzcY0poxwTxyxzd2pw1
45OIV9WllYNTotQyOheiJEN9hGgU/qjIRpKg/1KrSnxsykYwevMjsyM/Rs3W7MRr
EGjCqr9VfWCnC/mOhwrSeEtL76DaMTpYIYIVemK+W+BajKD5nNekjs6567phMFbm
Bsqil3hXWE31GyIaYwQqbMWI1gCSX/Tvh3dmt2dVE2/7q4soZPVSlNqEq92UENqR
eL0bNOHqi4e7iXtucPnlWLlrpylm1ybm9Q0AUm4X0N0
k1XFB8hyOWHH0SgczbKbbHfaJEWi7kDVsUCL1wIDAQABAoIBAQCKUzJwbRX0N8mq
W5Lt4VbNRtqJYUnyAIcOkJdKT4+8hfGDyEeg4g3HCUM/XaWtuYqVymPuWAKhebsC
IwGs5BkbFc+rIFUdT0vREaND++ahztOToig7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QyW7pRGezj+TC44xCagCQQOzzNmzEAP2SnCrJ
sNE2DpRVMnL8J6xBRdjmOsC3N6cQuKuRXbzByVBjCqAA8t1L0I+9wXJerLPyErjy
rMKWaBFLmfK/AHNF4ZihwPGOc7w6UHczBZXH5RFzJNnww+WnKuTPI0HfnVH8lg==
-----END CERTIFICATE-----

以上编码立即复制便可应用。尽管以上是到期的资格证书,但也是能够用于处理难题。

另外一种是我自身创造发明的,在每一个站独立的配备文档,也就是nginx设定中,在listen 80;下边提升根据listen 443 ssl http2;储存后便可处理难题,假如提醒不正确处理不了,那末就选用第一种方法便可,两个方法搭配应用。

---------

手机网站建设有哪

------------


Copyright © 广州凡科互联网科技有限公司 版权所有 粤ICP备10235580号
全国服务电话:4000-399-000   传真:021-45545458
公司地址:广州市海珠区工业大道北67号凤凰创意园