Question

Running Java+Angular app and wordpress on same droplet and same domain

Hello, I want to run my existing java+angular app as well as Wordpress app on same droplet. I have seen multiple examples to do same thing with two different domains. However i want to run wordpress on https://domain.com and angular+java app on https://mydomain.com/app. I am using nginx as server for my java+angular app which is currently deployed at https://mydomain.com Please help!


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.

When using Nginx or any other service you can use Vhosts to get what you want. Have one directory listen to a specific /folder and the other to another. We need some specific information here however to help you on this specific request;

  • What does your current nginx file look like?
  • Where are the different webserver files located?
  • Does the angular service run a different port?

Let me know if this helps you or got any more questions.