configuring nginx for different rails apps under same do
Igor Sysoev
is at rambler-co.ru
Sat Nov 24 12:01:12 MSK 2007
On Sat, Nov 24, 2007 at 09:41:19AM +0100, amith amith wrote:
> Igor Sysoev wrote:
> > On Wed, Nov 21, 2007 at 08:10:44AM +0100, Archana Balaji wrote:
> >
> >> i want to know how to configure nginx for different rails app under the
> >> same domain.
> >> for example:
> >> 1)Rails application 1 <http://mydomain.com/app1>
> >> 2)Rails application 2 <http://mydomain.com/app2>
> >>
> >> Below is my enginx configuration .i want to know where iam goin wrong
> >> as i'm able to go in my home page but not able to navigate from login
> >> and signup pages.
> >
> > How these pages (home, login, and signup) are looked from rails side ?
> > What their URLs ?
>
> the url's are redirected to main/home in the rails apps side..
>
> The problem now is that
>
> The things which are redirected to main /home gets directed to
>
> <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
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list