FastCGI and multiple Virtual Hosts

On my server, I would like to have multiple rails apps under two
different virtual hosts for Apache. How would I configure my conf
file for this?

Thank you.
-Adam