`

Tomcat5.5.x配置整理 - 只能够进行https方式访问

阅读更多

如果你的webapp需要只能够进行https方式访问,那么在webapp的web.xml里加上

  1. <security-constraint>  
  2.   <web-resource-collection>  
  3.     <web-resource-name>must https</web-resource-name>  
  4.     <url-pattern>/lizongbo/*</url-pattern>  
  5.   </web-resource-collection>  
  6.   <user-data-constraint>  
  7.     <transport-guarantee>CONFIDENTIAL</transport-guarantee>  
  8.   </user-data-constraint>  
  9. </security-constraint>  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics