Report this

What is the reason for this report?

How do I store wordpress uploads on a different droplet?

Posted on August 6, 2014

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?



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.

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.

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.