Tomcat
[Tomcat 8.5] 하나의 WAS Container에 2개 이상의 TCP 서비스 Port Open 처리
Hwoarang757
2023. 3. 16. 01:41
[Tomcat 8.5] 하나의 WAS Container에 2개 이상의 TCP 서비스 Port Open 처리
server.xml 에 Connector 부분을 두 개 설정 하였습니다.
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
-->
<Connector connectionTimeout="20000" port="38080" protocol="HTTP/1.1" redirectPort="8443"/>
<Connector connectionTimeout="20000" port="38081" protocol="HTTP/1.1" redirectPort="8444"/>
TCP : 38080 , 38081 로 각각 설정 하였습니다.
접속시에 http://localhost:38080 , http://localhost:38081 로 설정하여 접속 해보니 두 개 모두 정상적으로 접속이 되었습니다.