Question

running two stack with one domain.

I have one domain name.

  • i like to have my blog running using wordpress. that means php + mysql + apache ( mydomain\blog)
  • i like to show a demo app that is build with django. that mean python + postgresql + apache/ngnix ( mydoamin\demo)

I hope this is possible. if yes, can you please point to me right tutorial. what is recommended droplet size ?


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.

That is more than possible. But putting all that on one droplet can get messy. I recommend you break it up into web and DB. But you can put it on one droplet, that is totally up to you. For a web server to pass a request to a different backend based on the URI, you can utilize Nginx’s location blocks. These let you define rules based on the URI. You can take a look at this tutorial for more information.

As for droplet size and such, that all depends. How efficient is whatever you’re running (If you are running two different DB backends, you already need quite a bit of ram unless you really tune that), how many requests/traffic do you expect it to hold up to, and how redundant do you want it to be? There are a lot of determining factors so that question cannot go answered without more information of your setup and such.