Rails / windows / apache question

In my app I say go to /companies/index for a modal box.

Locally it runs fine because it sees /public as the root.

When I put it on the server I have an alias mapped for the root. when
I goto the url above it goes to the root of the server which id
obviously not going to be correct.

If I go to companies/index it goes to /rootofcurrentcontroller/
companies which does not work either.

How do I get it to recognize that /companies/index is the root of the
rails app?

anyone?