如何从一个 SSL 域重定向到具有正确通用名称的域? [英] How can I redirect from one SSL domain to the one with the correct common name?
问题描述
全部.我在一台服务器(Linux)上的 apache 下设置了两个域.我有一个 SSL 证书,为第一个域 (a.com) 设置了一个通用名称,但没有为第二个域 (b.com) 设置一个通用名称.
all. I've got two domains set up under apache on a single server (Linux). I have an SSL certificate set up with a common name for the first domain (a.com), but not one for the second (b.com).
当我尝试访问 https://www.b.com,它只是将我带到 https://www a.com 但保持相同的 URL.因此,我在浏览器中收到一条警告消息:这可能不是您要查找的站点,yada yada yada."
When I try to visit https: // www. b.com, it merely takes me to https: // www a.com but maintains the same URL. Because of this, I am getting a warning message in my browser: "This may not be the site you're looking for, yada yada yada."
由于 b.com 来自 a.com 的子目录,我想指出 https://www.b.com 到 https://www a.com/b/
Since b.com feeds out of a subdirectory of a.com, I'd like to point https: // www. b.com to https: // www a.com/b/
但是,我不完全确定如何完成此操作.我能做些什么来设置它?离开 HTTP://WWW.b.com 的方式很好——它仍然在/b/目录中显示我想要的页面,但是 https://www.b.com 显示 https://www.a .com 的内容.
However, I'm not entirely sure how to accomplish this. What can I do to set this up? Leaving http: // www. b.com the way it is is fine--it's still showing the page I want from the /b/ directory, but https: // www. b.com shows the contents of https: // www.a .com.
另外,当这个设置为重定向时,有没有什么方法可以改变浏览器中的URL来反映重定向?我不想收到这条警告信息.
Additionally, when this is set up to redirect, is there any way to change the URL in the browser to reflect the redirect? I don't want to have this warning message.
谢谢,
推荐答案
要实现此目的,您需要为 b.com 获取单独的 IP 地址或获取包含 www.a .com 和www.b .com,然后设置 SSL 主机标头(请参阅 http://www.sslshopper.com/article-how-to-configure-ssl-host-headers-in-iis-6.html).一旦处理完毕,重定向应该会更改 URL 并且不会出现任何错误.
To accomplish this, you will either need to get a separate IP address for b.com or get a UC SSL certificate that includes both www.a .com and www.b .com and then set up SSL Host Headers (see the Apache section at http://www.sslshopper.com/article-how-to-configure-ssl-host-headers-in-iis-6.html). Once that is taken care of, the redirect should change the URL and won't give any errors.
这篇关于如何从一个 SSL 域重定向到具有正确通用名称的域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!