Report this

What is the reason for this report?

Install wordpress on rails app with subdomain.

Posted on April 14, 2019

Hello, I have created a droplet where i host my rails app. and i am following this tutorial. https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04 now how can i create a subdomain where i can host my wordpress site on that same droplet.

Thank you



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.

Greetings!

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:

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04

Jarland

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.