Monday, November 4, 2013

How to run tomcat at 80 port in Amazon Web Service EC2 instance

Just simply run the following command to redirect any request from 8080 to 80:

sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

sudo service iptables save

No comments:

Post a Comment