Hello friends, Is there any way to implement the subdomain i.e two more rails application, but main domain is same. Ex: rails1.mainsite.com rails2.mainsite.com rails3.mainsite.com rails4.mainsite.com Note: its not a single rails application. I am using rails 4, ruby 2.0 Please guide me. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7b1a36ff-f75f-461f-9bff-14e3edb78edd%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Use a webserver like nginx to route traffic to different rails application. Sample config in nginx can be as below: *server {* * # Subdomain* * listen 80;* * server_name subdomain1.domain.com;* * location / {* * proxy_pass http://127.0.0.1:8000/;* * }* *}* *server {* * # Subdomain* * listen 80;* * server_name subdomain2.domain.com;* * location / {* * proxy_pass http://127.0.0.1:8888/;* * }* *}* Cheers and good luck! Karthik On Tuesday, 17 December 2013 11:45:05 UTC+5:30, saravanan p wrote:> > Hello friends, > > Is there any way to implement the subdomain i.e two more rails > application, but main domain is same. > Ex: > rails1.mainsite.com > rails2.mainsite.com > rails3.mainsite.com > rails4.mainsite.com > > Note: its not a single rails application. > I am using rails 4, ruby 2.0 > > Please guide me. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b665c034-222f-4d8a-8462-6c83fd06dc26%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Hi, if you use Apache Webserver and PhusionPassenger you can take a look her: http://www.modrails.com/documentation/Users%20guide%20Apache.html#working_with_apache_conf Am Dienstag, 17. Dezember 2013 07:15:05 UTC+1 schrieb saravanan p:> > Hello friends, > > Is there any way to implement the subdomain i.e two more rails > application, but main domain is same. > Ex: > rails1.mainsite.com > rails2.mainsite.com > rails3.mainsite.com > rails4.mainsite.com > > Note: its not a single rails application. > I am using rails 4, ruby 2.0 > > Please guide me. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/42348ef1-d980-4f69-807c-f25583eb24ac%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
I use multiple virtual hosts with apache2 and phusion passenger for that problem. Works fine. Norm On 12/16/2013 11:15 PM, saravanan p wrote:> Hello friends, > > Is there any way to implement the subdomain i.e two more rails > application, but main domain is same. > Ex: > rails1.mainsite.com > rails2.mainsite.com > rails3.mainsite.com > rails4.mainsite.com > > Note: its not a single rails application. > I am using rails 4, ruby 2.0 > > Please guide me. > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/7b1a36ff-f75f-461f-9bff-14e3edb78edd%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/52B079B9.1040205%40earthlink.net. For more options, visit https://groups.google.com/groups/opt_out.
Thank you! Let me check with apache2 and puhsion passenger. Thanks again! On Tue, Dec 17, 2013 at 9:50 PM, Norm Scherer <normscherer-ihVZJaRskl1bRRN4PJnoQQ@public.gmane.org>wrote:> I use multiple virtual hosts with apache2 and phusion passenger for that > problem. Works fine. > > Norm > > > On 12/16/2013 11:15 PM, saravanan p wrote: > >> Hello friends, >> >> Is there any way to implement the subdomain i.e two more rails >> application, but main domain is same. >> Ex: >> rails1.mainsite.com >> rails2.mainsite.com >> rails3.mainsite.com >> rails4.mainsite.com >> >> Note: its not a single rails application. >> I am using rails 4, ruby 2.0 >> >> Please guide me. >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/rubyonrails-talk/7b1a36ff-f75f-461f-9bff- >> 14e3edb78edd%40googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/ > msgid/rubyonrails-talk/52B079B9.1040205%40earthlink.net. > > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAOxyzk3u6fhysVrWA%2B%3DJQ5xm%3DpK6Tz%3D0pZWCKOEuh6Tk3A4s6w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.