So, keeping your existing LAMP stack serving example1.com,, do the following to set up the Rails side on example2.com:
Run mongrel to listen on port 8000 (or whatever) (FWIW, we use Unicorn, which will handle the workers more elegantly).
On the Apache side, do something like this configuration:
<VirtualHost example2.com:80>
ServerName example2.com
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000
ProxyPreserveHost on
</VirtualHost>
You should peruse your Apache documents on "reverse proxy" and the "ProxyPassReverse" directive for specific details and gotchas.
So, your existing VirtualHost for example1.com will handle the LAMP stuff, and the VirtualHost for example2.com will proxy requests over to your Rails stack. Your Rails server will listen on port 8000, which is out of the way from LAMP.