configuring nginx for different rails apps under same do

amith amith lists at ruby-forum.com
Sun Nov 25 20:15:14 MSK 2007


Igor Sysoev wrote:
> On Sat, Nov 24, 2007 at 09:41:19AM +0100, amith amith wrote:
> 
>> >> as i'm able to go in my home page but not able to navigate from login
>> 
>> <http://domain.com/main/home>
>> 
>> I want it to be redirected to
>> 
>> <http://domain.com/app1/>
>> 
>> how do i redirect it using nginx???
> 
> I do not understand the question.
> I do not know typical rails URLs.
> Could you write how should the URLs be mapped ?
> For example,
> 
>        outside world:                  Rails:
> 
>      domain.com/app1/       >  www.domain.com/main/home
>      domain.com/app1/login  >  www.domain.com/main/login
> 
>      domain.com/app2/       >  www.domain.com/main2/home
> 
>      domain.com/app3/       >  www.domain.com/main3/home


the redirecting should be as follows:

   outside world:                                Rails:

  domain.com/app1/                     >  www.domain.com/app1/main/home
  domain.com/app1/account/login        > 
www.domain.com/app1/account/login
after logging in should be redirected to > www.domain.com/app1/

  domain.com/app2                      > www.domain.com/app2/main/home

  domain.com/app3                      > www.domain.com/app3/main/home

i hope u'r able to understand from the above example.
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list