How to bind Tomcat to Port 80
I have just installed Tomcat on my Linode. When I try to bind it to port 80, I get below error
java.net.BindException: Permission denied
I am sure it may be an issue of having another program using port 80 or I don't have enough permissions. But I logged in as root user, so it shouldn't be a problem.
Any hint is much appreciated.
cheers
4 Replies
Yeah. I can configure iptables to direct all traffic on port 80 to tomcat port.
I google and found this if anybody wants to bind it to port 80
Yeah you are right. I dont need to bind it to port 80, I can configure my iptable to redirect all traffic on 80 to tomcat port.
If at all we want to bind to 80, this link may help.