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

  • Posted January 17, 2014

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.