Virtual Host issue

Hey, I'm having sort of an issue configuring virtual hosts with passenger

I want domain.com and www.domain.com to point to one rails app (simple cms) and *.domain.com to point to another rails app (the actual thing)

How can I do this with apache+mod_rails? Thanks a lot for your help!

From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails- talk@googlegroups.com] On Behalf Of andresmax@gmail.com Sent: Friday, April 17, 2009 12:08 PM To: Ruby on Rails: Talk Subject: [Rails] Virtual Host issue

Hey, I'm having sort of an issue configuring virtual hosts with passenger

I want domain.com and www.domain.com to point to one rails app (simple cms) and *.domain.com to point to another rails app (the actual thing)

How can I do this with apache+mod_rails? Thanks a lot for your help!

I'm pretty sure if you first put the VirtualHost for domain.com and www.domain.com, and then the VirtualHost with ServerName *.domain.com, that should work.

Thanks, my config was right, but the order in which the virtual host files were loading was wrong