1) server.xml 수정
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" (기존에는 8443)
URIEncoding="UTF-8" />
2) web.xml 추가
<security-constraint>
<web-resource-collection>
<web-resource-name>HTTP</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
3) tomcat 재구동
/usr/local/lib/apache-tomcat-9.0.53/bin 경로 이동
./shutdown.sh 진행 후
./startup.sh 진행
'On-premise > Tomcat' 카테고리의 다른 글
| tomcat 인스턴스 별로 구성하기 및 tomcat 실행권한 root 에서 tomcat으로 변경하여 설정하기 (0) | 2023.11.06 |
|---|---|
| openjdk가 아닌 단순 java(jdk) 설치 (0) | 2023.11.06 |
| apache-tomcat (JSP 테스트 페이지 연동 확인하기) (0) | 2023.11.06 |
| Tomcat SNI 기능 (0) | 2023.11.06 |
| Tomcat 설정시 도메인명, DocumentRoot 경로 설정 하는 방법 (0) | 2023.11.06 |