8 messages in ru.sysoev.nginxRe: configuring nginx for different r...
FromSent OnAttachments
Archana BalajiNov 20, 2007 11:10 pm 
Cliff WellsNov 21, 2007 12:05 am 
Igor SysoevNov 21, 2007 12:24 am 
amith amithNov 24, 2007 12:40 am 
Igor SysoevNov 24, 2007 1:00 am 
amith amithNov 25, 2007 9:14 am 
Brandon HoultFeb 22, 2008 12:45 pm 
Brandon HoultFeb 22, 2008 1:07 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: configuring nginx for different rails apps under same doActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Nov 24, 2007 1:00:49 am
List:ru.sysoev.nginx

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