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

Posted May 18, 2020 610 views
WordPressInitial Server Setup

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.

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.

Submit an Answer
1 answer

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.