[Mongrel] mulitiple rails application with different domain name
rgo at aspgems.com
Fri Nov 13 05:44:14 EST 2009
Geetha Sg wrote:
> Hassan Schroeder wrote:
>> 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.
>>> 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.
> let me know how to do that.. i am very basic of ruby hosting..
I give you two templates that you can use to configure your server
replacing "foo" with your data, and the ports with your mongrel ports.
If you don't understand something it's explained in apache documentation
very well: http://httpd.apache.org/docs/2.2/
More information about the Mongrel-users