Serve java application on port 8080 as default and blog.mydomain on port 80


My full application is a mix of a Wordpress blog and a Java application.

I’m running Apache and Apache Tomcat on the same droplet. In this way, if I try it runs my Wordpress blog, and if I try it runs my Java application. Both applications are running fine.

But what I need is:

Is there anyway to do that with DNS or a virtual server? I’m very confused of how do I configure my Apache server to do that.

Thanks a lot.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


in which file you add the configurations?


No, but I made it. <br> <br>For some reason I had to execute this: <br> <br>a2enmod proxy_http <br> <br>Now it’s working. <br> <br>Thanks to you all.

Is there any output in /var/log/apache2/error.log