Tomcat配置部分页面Https访问
2015-04-01 23:07
274 查看
1、首先对Tomcat进行认证配置(参见:https单向/双向认证的tomcat配置攻略)
/article/4110408.html
2、修改tomcat下的conf的web.xml文件,在</web-app>前面增加要https访问的路径的配置。如:(下面代表以 /mm/或/fi/开头的路径系统将自动转为https)
<security-constraint>
<web-resource-collection>
<web-resource-name>must https</web-resource-name>
<url-pattern>/mm/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>must https</web-resource-name>
<url-pattern>/fi/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
/article/4110408.html
2、修改tomcat下的conf的web.xml文件,在</web-app>前面增加要https访问的路径的配置。如:(下面代表以 /mm/或/fi/开头的路径系统将自动转为https)
<security-constraint>
<web-resource-collection>
<web-resource-name>must https</web-resource-name>
<url-pattern>/mm/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>must https</web-resource-name>
<url-pattern>/fi/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
相关文章推荐
- Tomcat配置部分页面Https访问
- Tomcat配置Https访问
- tomcat下配置https 访问
- Tomcat配置https单向双向认证,iOS加密解密验证,iOS访问HTTPS
- TOMCAT HTTPS访问配置应用
- Tomcat配置https协议、以及http协议自动REDIRECT到HTTPS【没有试验,内含设置强制https访问】
- 给Tomcat配置HTTPS访问
- TOMCAT HTTPS访问配置应用
- Tomcat 访问http强制 https 访问配置方法
- Tomcat配置https及访问http自动跳转至https
- Tomcat中配置https访问
- linux系统下用单向认证方式将Tomcat配置成https方式访问
- 在Tomcat下配置HTTPS访问方式
- tomcat同时使用http和https访问的配置方法
- 我用myeclipse导入了一个用eclipse开发的项目,项目上有个差报错,是里面几个页面报的假错,部署到tomcat后,tomcat配置里这个项目的running值是false,访问就报404错误,而且不编译class文件
- Tomcat配置https及访问http自动跳转至https
- 如何配置https访问tomcat
- Windows下Tomcat+nginx配置证书实现登录页https访问
- Tomcat全局/局部https访问配置方法【tomcat容器的配置文件web.xml中添加security-constraint】
- Tomcat配置HTTPS访问