I am running two webserver on tomcat version 9 using port 8080 and 7070 on same EC2 . 1st tomcat :
<Connector port="7070" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
2nd tomcat:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
I have added this EC2 on loadblancer with port 8080 and 7070 but not able to run server without opening this port in security group. As security purpose we can't open these ports for all so please suggest another way around so that I can run these servers securily.