How do I store wordpress uploads on a different droplet?

Posted August 6, 2014 2.2k views

I have one droplet that has wordpress website

I always wondered if it was possible to have the uploads folder on another droplet.

This way when I upload a image/audio it goes to the other droplet. I would just use a sub-domain for that droplet.

After uploading it should just point to that server via IP/Sub-Domain.

Is this even possible?

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

One way you could accomplish this is to create a NFS mount. With this approach, it would still look like a normal folder to WordPress and you wouldn’t need to handle things like rewriting the urls. You also won’t need to write any php code, just mount the remote directory on boot.

Check out this article:

How To Set Up an NFS Mount on Ubuntu 14.04

It should point you in the right direction.

Interested to hear other solutions people might have… I know there are some plugins that will do this with an Amazon S3 bucket.

by Justin Ellingwood
NFS is a remote file system protocol that allows you to mount remote shares on your local machine. In this guide, we will demonstrate how to use NFS on two Ubuntu 14.04 servers.