Topic: Setting up Rails Program in subfolder

I have a pretty basic question that I am asking simply because I am not too familiar with the best way to do this. I am putting up my Rail project in a subfolder initially to make sure everything is functioning properly before I make it completely public. I have gotten over the major hurdles with 500 error and now this is all that is left. I copied my project to the following folder.

http://www.mydomain.com/rails/

Currently when I access it I go to http://www.mydomain.com/rails/public. Each page works great, but none of the links work. When I try them they go to http://www.mydomain.com/controller/action instead of http://www.mydomain.com/rails/public/controller/action . What is the best way to configure  the project to work from http://www.mydomain.com/rails/ .

Whenever I try to RewriteBase or use an Alias it doesn't seem to work.

Any help would be wonderful.

I should also add that I am in an environment that doesn't let me create vhosts in apache.

Last edited by twism113 (2006-12-20 19:02:10)

Re: Setting up Rails Program in subfolder

Have you tried symlinking? That usually works. Just symlink the public folder into your doc root.

Last edited by aceofspades (2006-12-20 22:48:41)

Founder of the Open Education Software Foundation (oeducate.org). PHP migrator swimming across the PHP straits to get to the promise rails. (im cuban it was the only thing i could think of >.<)