Friday, April 12, 2013

Simplest solution to redirect Tomcat port 8080 to port 80

sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

(Tested to work fine on Ubuntu 12.04, 12.10)

No comments: