Mapping two host names to the same app

Hi, I wonder if there is any reason to avoid mapping several host names
to the same rails application in an apache + fcgi configuration (I’m
thinking about the tmp directory content).

My idea is to detect the host name and render specific views depending
on its value, eg.,