Report this

What is the reason for this report?

Multiple application servers on one droplet

Posted on November 28, 2014

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.



This textbox defaults to using Markdown to format your 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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.