We had a requirement to run an application on a different port which was running at port 8080 (Jetty) by default . One of our Lift application was running at port 8080 on Linux (Ubuntu 13.04 ) machine & we wanted to run it at port 80. Usually on Linux machines, port 80 is protected. Typically only the superuser root can open it and ports below 1024 can be opened only by root. Here is how we did it as a normal user ( Non-root user) :
1. Install Xinetd .
2. Go to /etc/xinetd.d/ and create a new file say redirect_file and put these contents in this file
3. Restart the xinetd service as :
4. This is all you’ve to do. Now you should be able to find the application running ( which is running at port 8080 ) on port 80.