Hi, I am using Spring Boot to make a java web application which uses an embedded tomcat server. I am able to deploy and run successfully on my droplet but how do I configure a subdomain for it? I couldn’t find any docs/tutorial regarding this online.
For ex., let’s say my app is running in directory /var/www/my_web_app. I want to configure a subdomain which would map to this directory.
Note: I have other applications running on the same server as well which uses a normal apache server and running on port 80. I have defined various VirtualHosts for it. I wanted something similar for embedded tomcat as well.
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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!