[Mongrel] mulitiple rails application with different domain name

Rafael G. rgo at aspgems.com
Thu Nov 12 08:08:37 EST 2009


More or less you like it:
  Apache with proxy pass - http://gist.github.com/232869
  Apache with proxy balancer - http://gist.github.com/232872

Choose one and modify to your needs :)

Geetha Sg wrote:
> I am using Slackware 12.1 OS, I need to deploy two rails applications
> (mongrel) with two different domain name with single ip.
>
> for example,
>
> maths.exam.info  -  path is /srv/maths.com/www/
>
> grammar.exam.info  -  path is /srv/grammar.com/www
>
>
> Herewith I've attached the apache conf files, please find it.
>
> 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.
>
> The dns has registered properly.
>
> Thanks
> sg..
>
> Attachments:
> http://www.ruby-forum.com/attachment/4228/apache1.conf.rtf
>
>   


-- 
Rafa



More information about the Mongrel-users mailing list