On Drupal 7, I want all files to be served from a a subdomain of my site (eg. files.mydomain.com) for the simple reason that it allows a bit of flexibility going forward. So uploaded files, css and js caches, etc. would all be served from this subdomain.

The files are still located on the same server as Drupal and in a location writable by Drupal.

How can I do this?


1 Answer 1


Take a look at the CDN module it helps you serve files from a different domain. I'm using it myself on a drupal 6 site, and it works great.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.