Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java Security » 精华区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 如何在一个Tomcat 环境中同时启用HTTP及HTTPS
skyedge





发贴: 32
积分: 0
于 2005-01-05 17:41 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
如题,比方说一个项目,可能只有其中的登录部分才需要ssl,也就是通过https来访问。那是不是要把https这一部分单独做为一个项目啊,如果这样的话,登录后怎么样把session共享到普通的http环境呢。。还是有更好的解决办法,谢谢回复。


作者 Re:如何在一个Tomcat 环境中同时启用HTTP及HTTPS [Re:skyedge]
skyedge





发贴: 32
积分: 0
于 2005-01-05 21:08 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
怎么没有人回复,自己顶一下!


作者 Re:如何在一个Tomcat 环境中同时启用HTTP及HTTPS [Re:skyedge]
bluepure

pureblue



发贴: 509
积分: 85
于 2005-01-06 08:07 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
http://www.cjsdn.net/post/view?bid=51&id=125720&sty=3&keywords=tomcat5.5.4

对需要https部分使用过滤器检验 schem,限制为https即可。



作者 Re:如何在一个Tomcat 环境中同时启用HTTP及HTTPS [Re:skyedge]
skyedge





发贴: 32
积分: 0
于 2005-01-06 09:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不对吧,scheme只是定义了使用https,但是没有限定哪些页面只能使用https啊。。


作者 Re:如何在一个Tomcat 环境中同时启用HTTP及HTTPS [Re:skyedge]
bluepure

pureblue



发贴: 509
积分: 85
于 2005-01-06 11:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
skyedge wrote:
不对吧,scheme只是定义了使用https,但是没有限定哪些页面只能使用https啊。。


这就正是你要在过滤器里干的事情啊



作者 Re:如何在一个Tomcat 环境中同时启用HTTP及HTTPS [Re:skyedge]
skyedge





发贴: 32
积分: 0
于 2005-01-06 13:49 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
问题是我定义了一个ssl connector后,既可以通过http访问所有页面,也可以通过https访问所有页面。。

我现在的想法是,另外定义一个service,然后在这个service下面定义一个ssl connector,然后把需要使用https部分的功能单独做一个web app,挂接在这个service下面,不过现在好象还是不行。。

过滤器里怎么做,你是说web 环境里面的过滤器吗?



作者 Re:如何在一个Tomcat 环境中同时启用HTTP及HTTPS [Re:skyedge]
glassprogrammer





发贴: 2
积分: 0
于 2005-01-20 09:18 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
如何限制页面必须通过 https 访问, 你可以参考这篇文章里面关于 web.xml 那一部分.

http://thinkbase.net/w/main/Wiki?Tomcat5SSL_ServerAndClient



welcome to thinkbase.net

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923