[Mongrel] mulitiple rails application with different domain name

Hassan Schroeder hassan.schroeder at gmail.com
Thu Nov 12 07:58:26 EST 2009

On Thu, Nov 12, 2009 at 2:04 AM, Geetha Sg <lists at ruby-forum.com> wrote:
> I am using Slackware 12.1 OS, I need to deploy two rails applications
> (mongrel) with two different domain name with single ip.

> The problem is both the domain goes to maths.exam.info
> we could get both sites where mention the port number.
> maths.exam.info:8000
> grammar.exam.info:8003
> How can i get the both sides with out port numbers.

Configure your virtual hosts properly; ServerName should be e.g.
maths.exam.info and grammer.exam.info.

Also, both vhosts are forwarding to the same mongrel cluster, so
nothing will ever get to the application on port 8003.

Hassan Schroeder ------------------------ hassan.schroeder at gmail.com
twitter: @hassan

More information about the Mongrel-users mailing list