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 진행

 

+ Recent posts