2013년 9월 26일 목요일

tomcat http를 https 로 redirect

web.xml 파일에 </web-app> 태그 마지막 부분에 추가
<!-- Automatisch alle requests redirecten naar https --><security-constraint>      <web-resource-collection>              <web-resource-name>Automatic SSL Forward</web-resource-name>              <url-pattern>/*</url-pattern>      </web-resource-collection>      <user-data-constraint>              <transport-guarantee>                      CONFIDENTIAL              </transport-guarantee>      </user-data-constraint></security-constraint>

출처 : http://sysengineers.wordpress.com/2011/03/16/tomcat-automatic-redirect-https/

댓글 1개:

  1. […] java 소스반영. db연결 설정 변경 IP주소를 컨테이너 이름 (oracle)으로 변경. tomcat redirect 설정: web.xml파일 <web-app>에 <security-constraint>추가 톰캣 재시작시 로딩이 […]

    답글삭제