Question

Multiple application servers on one droplet

Posted November 28, 2014 2.5k views

Hello,
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 100.100.100.100:8079, so we want to hide the 8079 port. One option could be ip adress as url(100.100.100.100) to enter wordpress and ip adress + /something (100.100.100.100/program) to enter java application. As another option there could be some subdomain like users.100.100.100.100 to enter java application and just ip adress to enter wordpress page. Is it possible to do that? Thanks in advance.

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.

×
1 answer

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

https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension

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.
Submit an Answer