如何实现单域名下多个域名的https配置

问答中心分类: Linux如何实现单域名下多个域名的https配置
smally asked 7年 ago
我利用咱们的oneinstack脚本配置了一个https。因为拿来测试,所有用了两个二级域名,发现,配置第一个时候是没有问题的,当配置第二个时候,发现两个都不能用了,会报错,服务器不能识别认证。我想请教下,在单ip服务器上如何实现根域名配置一个证书,相关的二级域名都共用这个根域名证书来实现https服务。

3 Answers
oneinstack answered 7年 ago
报什么错误?

smally answered 7年 ago
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

oneinstack answered 6年 ago
vhost.sh 绑定即可