Report this

What is the reason for this report?

How to setup a WP blog on different droplet pointed to by subdirectory URL like xyz.com/blog

Posted on May 18, 2020

I have a website domain.com (php+mysql) running on a single droplet. I need to run a Wordpress blog on sub URL domain.com/blog and host that Wordpress on a separate droplet for security and performance reason.

How can I point domain.com/blog to this droplet/IP? I know this is not possible in truest sense but I am ready to try some hacks like through .htaccess in worst case.



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.

Hi @dontstop99

You cannot use the same domain with different droplets like this.

here are your options:

  • Use a subdomain for the new droplet.
  • Use a bigger droplet to host everything on it.
  • Use haproxy load balancer to send traffic destined for domain.com/blog to your new droplet.

Please select one solution and let me know if you need more help.

Hope this helps.

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.