How to setup a WP blog on different droplet pointed to by subdirectory URL like

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

How can I point 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.

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.

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 to your new droplet.

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

Hope this helps.