First, i just want to see it is not security group setup in ec2 console. because i can setup the apache, which is by fault 80 port, and be able to visit the apache website through 80 port.
but for tomcat it works if i use port 8080(by default) or some values bigger than 1023(i think this port). but when i change server.xml(changing 8080 to 80) it cannot work if i use 80 port, i start the service successfully, but there is no 80/http listening. I know it should be some privileges issues(only the root can start service below 1023 port). but i did not know how to do it.
First, i just want to see it is not security group setup in ec2
Share
My personal choice for this problem is to use
iptablesto redirect all traffic from port 80 to the upper port (e.g. 8080) the Tomcat is running on.