# Continue to use assets functions on a different host and path?

**URL:** <https://www.ruby-forum.com/t/continue-to-use-assets-functions-on-a-different-host-and-path/173287>\
**Category:** Rails\
**Created:** [August 6, 2009, 9:55am UTC](https://www.ruby-forum.com/t/continue-to-use-assets-functions-on-a-different-host-and-path/173287 "2009-08-06T09:55:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kedare](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/2acd7d/32.png) [@kedare](https://www.ruby-forum.com/u/kedare)\
**Post date:** [August 6, 2009, 9:55am UTC](https://www.ruby-forum.com/t/continue-to-use-assets-functions-on-a-different-host-and-path/173287/1 "2009-08-06T09:55:03Z")

</div>

Hello,  
I just build my new Rails application, i placed the website like  
that : at

[http://www](http://www).\*\*\*.net/ = /var/www/devkedare/public/ (with mod\_rails)

[http://media](http://media).\*\*\*.net/ = /var/www/media/

I want to use the javascript :cache features, the “timed” files to  
prevent caching when file change (ex: x.js?1249517571), and all others  
greats files features,  
I configured the asset\_host to use the media domain, and it work, but  
how to tell to rails to use that directory (/var/www/media) and no /  
var/www/devkedare/public/ like how it do and to continue to use all  
the functions that it provide when the files are places at public/  
Is there a way to do that ?  
Thanks 🙂

Sorry for my bad english
