简体   繁体   English

子域不使用 SSL 重定向

[英]Subdomain does not redirect with SSL

I have a domain example.com , which is working with a SSL certificat (letsencrypt).我有一个域example.com ,它使用 SSL 证书(letsencrypt)。 I want to add a subdomain sub.example.com to example.com:<port> .我想将子域sub.example.com添加到example.com:<port> I use my V-Server and the subdomain redirects via proxy tp example.com:<port> .我通过proxy tp example.com:<port>使用我的 V-Server 和子域重定向。

Now the problem: If I call example.com:<port> , the tomcat server is called and works.现在的问题是:如果我调用example.com:<port> ,tomcat 服务器将被调用并工作。 But if I call sub.example.com , I get the error: ERR_SSL_UNRECOGNIZED_NAME_ALERT.但是,如果我调用sub.example.comsub.example.com收到错误消息:ERR_SSL_UNRECOGNIZED_NAME_ALERT。

Can anybody help?有人可以帮忙吗?

It sounds like your SSL certificate does not include sub.example.com. 听起来您的SSL证书不包含sub.example.com。 Likely it's only for example.com. 可能仅用于example.com。 Get a wildcard certificate that supports *.example.com or a certificate for sub.example.com and serve that for those requests. 获取一个支持* .example.com的通配符证书或sub.example.com的证书,并将其用于那些请求。

通过按 Windows 徽标键和 R 在 Open: 搜索空间中键入 C:\\Windows\\System32\\drivers\\etc 打开运行,然后按右键单击主机文件,然后按删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM