Redirect app to 2 URLs

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…