I have a small application running on port 8888, and as a quick fix to remove the need to append the url with the port, I used the iptables program to forward all requests to port 80 to 8888.
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -REDIRECT --to-port 8888
Assuming this is the only web service running on the server, is there anything wrong with the above approach? (performance, maintenance etc...) And could anyone suggest a good alternative?
I am pretty new to server maintenance, so would be interested to hear what experts have to say.