免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1346 | 回复: 0
打印 上一主题 下一主题

[Web] 关于做基于名称的ssl Vitualhost的讨论! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-11-25 22:00 |只看该作者 |倒序浏览
看了apache的官方文档http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html
是如下说明:
Why can't I use SSL with name-based/non-IP-based virtual hosts?

The reason is very technical. Actually it's some sort of a chicken and egg problem: The SSL protocol layer stays below the HTTP protocol layer and encapsulates HTTP. When an SSL connection (HTTPS) is established Apache/mod_ssl has to negotiate the SSL protocol parameters with the client. For this mod_ssl has to consult the configuration of the virtual server (for instance it has to look for the cipher suite, the server certificate, etc.). But in order to dispatch to the correct virtual server Apache has to know the Host HTTP header field. For this the HTTP request header has to be read. This cannot be done before the SSL handshake is finished. But the information is already needed at the SSL handshake phase. Bingo!

但是在实际操作过程中却可以做基于ssl的namevirtualhost

哪位知道为什么啊?

我看到在《Apache管理员手册》--(美)Rich Bowen著 LinuxAID网站翻译
P207中明确说明:
人们的一个常见问题就是如何使得基于名字的虚拟主机和ssl一起工作,答案是不可以的。基于名字的虚拟主机依赖于http请求的主机名信息,而证书核实发生在ssl连接被建立而且没有http数据头被发送的时候。有一个协议用于把一个已有的http连接升级到TLS,但是当前的浏览器几乎都不支持此功能(RFC2817)

情哪位朋友知道的,可以说说看!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP