Install wordpress on rails app with subdomain.

Hello, I have created a droplet where i host my rails app. and i am following this tutorial. now how can i create a subdomain where i can host my wordpress site on that same droplet.

Thank you

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.


Basically two things need to happen for you to take your existing server, which currently uses Nginx to reverse proxy to a Rails app, and run a Wordpress site alongside it:

  1. New server block defined for Wordpress site.
  2. PHP installed / configured with Nginx, and that server block.

These steps will not be exact, given that you’re not working from a clean slate. However, this guide should make an excellent reference for the steps necessary in this process: