Report this

What is the reason for this report?

running two stack with one domain.

Posted on November 24, 2015

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 ?



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.

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.

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.