Monday, May 11, 2009

Using Apache ProxyPass to redirect requests to mongrel server obscuring the mongrel port and loading a default Ruby on Rails model.

Must run mongrel_rails using sudo on Mac OS X Leopard Server
rails_app $ sudo mongrel_rails start --prefix /field_management_system -d

Apache setup:
Create <Location> directive/"realm" in serveradmin,
Add lines for ProxyPassReverse with BalancerMember

Rails app configuration.
In routes.rb add a regular route for events model.
map.connect '', :controller => "events", :action => "list"
Delete the file index.html in rails_app/public