Forum: Ruby on Rails masking sub-domain in routes?

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.
708000cf4928013787823c10427136fc?d=identicon&s=25 ressister (Guest)
on 2009-02-18 14:36
(Received via mailing list)
I have a rails app and a Mephisto CMS instance running on the same
server. Currently I use the CMS to manage help articles related to the
application.  Mephisto runs on a sub-domain of the main domain, think
articles.mydomain.com.

I'd like my routes to work like this:

http://www.mydomain.com/help  => http://articles.mydomain.com/help

/help in my app would point to the appropriate path in my Mephisto
CMS.  What's the best way to do this?  Do I use Rails routes + Apache
virtualhost?  Let me know your thoughts.  An example would be really
helpful too.

Thanks!
This topic is locked and can not be replied to.