Forum: Rails deployment Redirect app to 2 URLs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bcc578efe3bb69e763ec7695d675c06a?d=identicon&s=25 Srinath A. (srinathbtech)
on 2008-11-20 16:25
Hi,

I was wondering how to redirect my app to two different URLs,
i am using apache over mongrel and running under production env.
i have 2 domains located say www.domain1.com and www.domain2.com.

when i hit www.domain1.com my app should redirect to  'account/login'
and when i hit www.domain2 my app should redirect to '/home/home' and
runs with single server and single app only


I was finding URLs in my app by using 'request.host' method.


any help !!

thanks
sri..
This topic is locked and can not be replied to.