How do I configure Apache to run my app when a browser-user goes to the domain name url

We have a CentOS7 Apache 2.4 droplet. Our java-based application is running fine, and can be accessed via a url similar to :

But I want anyone accessing the url ** to automatically go to my app running at

I’m sure this should be very simple but I’m not a sysadmin and I can’t find the answer by googling or looking at the tutorials here.

Many thanks for advice.


Show comments

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.

Couple of different methods to get this done. It all depends on what you want the end result to look like. If you do not care if the URL is, then you can just use a simply 301 rewrite code to get the job done. If you want the URL to be (without the trailing filenames and suhc), you might want to use mod_proxy or something similar to proxy it.

Hope it helps, Jason Colyer DigitalOcean Platform Support Lead