How to bind port java web application port number to domain name?

January 17, 2014 1.6k views
I have the java play! application. To run play application no need of a webserver like apache. But i need run my application on VPS with the domain name like, do I need web server? If I have the multiple applications running on different http ports, how can i map those ports to my domain name; Example:> application running on port 9000
1 Answer
One option is to change the port number in the Play config to 80 from 9000 and map the to the server's ip address. If there are more applications, a web server running on 80 can be setup to forward requests from 80 to 9000 and other ports for various URIs.
Have another answer? Share your knowledge.