# Rails / windows / apache question

**URL:** <https://www.ruby-forum.com/t/rails-windows-apache-question/167703>\
**Category:** Rails\
**Created:** [May 11, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/rails-windows-apache-question/167703 "2009-05-11T19:13:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [May 11, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/rails-windows-apache-question/167703/1 "2009-05-11T19:13:29Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [May 18, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/rails-windows-apache-question/167703/2 "2009-05-18T23:22:41Z")

</div>

anyone?
