Multiple application servers on one droplet

November 28, 2014 1.2k views

we are running two application servers(galssfish and apache) on our droplet. We have java application running on glassfish server and wordpress page runing on apache. Glassfish runs on default port(80) and apache on 8079 port. If someone wants to see wordpress content, they have to type, so we want to hide the 8079 port. One option could be ip adress as url( to enter wordpress and ip adress + /something ( to enter java application. As another option there could be some subdomain like users. to enter java application and just ip adress to enter wordpress page. Is it possible to do that? Thanks in advance.

1 Answer

You can make Glassfish listen on port 8080, Apache on 80 and configure Apache as a reverse proxy for the Glassfish domain.


by O.S. Tezer
In this DigitalOcean article, we are going to see set up Apache on Ubuntu 13 and use it as a reverse-proxy to welcome incoming connections and redirect them to application server(s) running on the same network. For this purpose, we are going to use and work with the mod_proxy extension and several other related Apache modules.
Have another answer? Share your knowledge.