multi-domain to multiple roots & one rails-app

Frantisek Psotka lists at
Thu May 10 19:59:42 UTC 2012


I wish to consult an configuration for following situation. Thanks for
any suggestion.

I have multi domain rails app and for each domain there is a need for
serving static files outside of rails, each domain from separated path.

so for example:
  -> will go to rails app
  -> will serve file on path /somewhere/

or in general:

DOMAIN/static/PATH will serve file /somewhere/DOMAIN/PATH
and DOMAIN/PATH will go to the rails app

This should work for any sub/domain.

Thanks! All suggestions are welcome.

Posted via

More information about the nginx mailing list