Hello everyone,

I have a general drupal question.

Is it possible to have the 'files' directory on a different server than the actual site.

for example, site is: http://example.com, and files are at: http://example2.com/files, etc

or better yet have the same name of the site, but two separate servers...

And if this is possible, does it work seamlessly, so the user cannot tell the difference.

I would appreciate it greatly if someone could help me with this, I would even be willing to pay a reasonable amount

-NN

Comments

cog.rusty’s picture

AFAIK, the 'files' directory specified in admin/settings/file-system must be on the same file system where Drupal is installed. Drupal handles it as a file path, not as an URL path.

codelust’s picture

But not directly via Drupal.

You will have to rsync the 'files' folder to the second server.

Add a 301 redirect to the requests that come into server1 to be redirected to server2 with a different domain.

On the same domain you will have to split the requests through either Pound or another reverse proxy that can direct different request URIs to different servers.

In short, there is no clean and nice way to do this.

Maybe Drupal should have a module that will allow us to offload serving 'files' to a different URL.

wheresmycookie’s picture

Yes, I am trying to figure this out, just seems overly complicated.

i found this article: http://www.lullabot.com/articles/using-lighttpd-static-file-server

but i dont know if users would users be able to upload files to that file on the other server as well?