Report this

What is the reason for this report?

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

Posted on April 7, 2020

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!



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.

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.

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.