Welcome! Log In Create A New Profile

Advanced

multi-domain to multiple roots & one rails-app

Frantisek Psotka
May 10, 2012 04:00PM
Hello,

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:

mydomain.com/one/route
-> will go to rails app

mydomain.com/static/another/route.png
-> will serve file on path /somewhere/mydomain.com/another/route.png

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 http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

multi-domain to multiple roots & one rails-app

Frantisek Psotka May 10, 2012 04:00PM

Re: multi-domain to multiple roots & one rails-app

Frantisek Psotka May 11, 2012 05:40AM

Re: multi-domain to multiple roots & one rails-app

B.R. May 11, 2012 12:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready