Sub domain + different rails application

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.

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:

Use a webserver like nginx to route traffic to different rails
application.

Sample config in nginx can be as below:
server {

Cheers and good luck!
Karthik

Thank you!

Let me check with apache2 and puhsion passenger. Thanks again!

I use multiple virtual hosts with apache2 and phusion passenger for that
problem. Works fine.

Norm

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs