Search This Blog

2009-12-20

how do you keep http service running as a non privileged user and bound to port 80?

1. get the server running on 8080
2. in the startup script before the actual server start command add:

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