Page 1 of 1

Configuring Apache/Ruby on Rails

Posted: Thu Jul 30, 2009 2:13 am
by Kaz
So I've been trying to get RoR working correctly with the server at my university.

Ruby 1.8.6
Rails 2.3.3
Apache 2.2

As an example: If I create a RoR app, and place it in my folder (/htdocs/u/css/freemancw/), then start the WEBrick server included with RoR (script/server), then the following is true:

a) opening up a browser on the server and going to localhost:3000 gives you the RoR installation page with the server configuration settings correctly displayed
b) browsing to http://student.cs.appstate.edu:3000 gives you the same thing only you aren't given permission to see the configuration.

What I would like to do is have my directory (http://student.cs.appstate.edu/freemancw/) point to the application, without any of this port business or anything. I assume once I know how to do this that setting up other test applications will follow the same procedure...

I'll gladly give other information as necessary, I'm just really stabbing in the dark about what to do (I've read a number of tutorials, haven't found one that clicked for me). Thanks for any help I can get!

Re: Configuring Apache/Ruby on Rails

Posted: Thu Jul 30, 2009 12:10 pm
by ^misantropia^
Google for 'php proxy'. Combined with some mod_rewrite magic, you might be able to set it up as a reverse proxy. The alternative is to persuade your system administrator to set up mod_proxy as the reverse proxy, but any admin I know would've kicked you out of his office before you were half-way through your question. =)