i've got a content management systems i am building that's made to administer multiple websites. media files, for example jpgs, swfs, css, etc. are saved insOrassets//.

i wish to let the request of ./assets/ in a way, that it'll instantly fetch the right media file by simply checking and rerouting towards the request http_host, but i've been not able to really make it work.

how's this done? thanks ahead of time.