티스토리 뷰
1. web.xml 설정
<security-constraint>
<web-resource-collection>
<web-resource-name>Automatic SSL Forward</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>
CONFIDENTIAL
</transport-guarantee>
</user-data-constraint>
</security-constraint>
2. server.xml 설정/확인할 부분
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443" server="XXXX"/> //혹은 80 port
<Connector port="443" protocol="HTTP/1.1"
address="xxx.xxx.xxx.xxx"
maxThreads="150" enableLookups="false"
acceptCount="200" scheme="https"
secure="true" SSLEnabled="true"
keystoreFile="....../ssl/keystore" keystorePass="xxxxxx"
clientAuth="false" sslProtocol="TLS" server="XXXXX"/>
<Connector port="8009" protocol="AJP/1.3" redirectPort="443" />
이정도 확인 후
tomcat Restart 하고 http://localhost => https://localhost로 변경되는지 확인 하면 됨..
모든 http 요청에 대해 https로 변경 되어야 함
'Skill > spring' 카테고리의 다른 글
Spring boot Interceptor (0) | 2020.09.02 |
---|---|
[java] 암호화 + salt (0) | 2020.08.18 |
[tomcat] 설치형 tomcat 설정 변경 (0) | 2020.07.23 |
[tomcat] 설정된 프로토콜 [Http11AprProtocol]이 가용하지 않은 APR/native 라이브러리를 요구합니다. (0) | 2020.07.23 |
[mybatis] for문 사용하기 (0) | 2020.07.09 |
- Total
- Today
- Yesterday
- devtools
- ul li로 테이블
- CSS
- excel
- Javascript
- border-collapse
- 프로젝트명변경
- element위치
- Keycode
- caniuse
- 여러 컬럼 update
- oracle
- @ExceptionHandler
- getter
- draw.io
- JQuery
- springboot
- QueryDSL
- DatePicker
- sumifs
- spring
- PostgreSQL
- $.each
- setter
- 정규식
- $.extend
- 전후방탐색
- 진열사랑
- lombok
- object key
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |