【求助】tomcat下实现网站部分页面https访问

wangxianshou 2012-05-08 04:13:23
现在我做的是全站https访问,想改成站点内部分网页用https访问,另一部分用https访问

我的环境是 Centos5.5 jdk1.6 tomcat6

ssl是用keytool做的,

/conf/server.xml 已经修改成功
/conf/web.xml 也修改成功(全站)
    
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<login-config>
<!-- Authorization setting for SSL -->
<auth-method>CLIENT-CERT</auth-method>
<realm-name>Client Cert Users-only Area</realm-name>
</login-config>
<security-constraint>
<!-- Authorization setting for SSL -->
<web-resource-collection>
<web-resource-name >SSL</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
</web-app>

好像是改这个节点 <url-pattern>/*</url-pattern>
我改了却一直不成功 <url-pattern>/sso2/OrderServlet</url-pattern>(例子:sso2站点的一个网页)

重启tomcat
去访问,这个网页仍然是http,没有成为https



关于一个网站很多网页,如何配置tomcat实现部分网页https强制访问?

困扰多日,请不吝赐教,谢谢

...全文
168 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangxianshou 2012-05-08
  • 打赏
  • 举报
回复
顶一个,浮上来
wangxianshou 2012-05-08
  • 打赏
  • 举报
回复
顶一个,浮上来

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧