Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: mongrel

Successful Settings for Apache forwarding to Mongrel

So, after a day of working on it, I finally fixed the problems I was having. I wanted to have Apache forward all traffic hitting a path to a mongrel server running in a rails application. So, I did as bish0p suggested, and set up the rails app to accept this behavior. First, I put this at the bottom of my environment.rb: ActionController::AbstractRequest.relative_url_root = “/MyRailsApp” This make it so all the urls in the Rails app are prepended with /MyRailsApp. [...]

Collaboa Trunk Install

Well, I guess I might as well finish the job as much as I can before bed. I’m going to install Collaboa. Here’s the beginning: Get rails and mongrel, along with all the deps: sudo gem install rails mongrel redcloth syntax sqlite3-ruby xhtmldiff Now, get ruby-mysql, which requires some junk on FC5: sudo yum install mysql mysql-devel sudo gem install mysql — –with-mysql-config Now, get the trunk: svn co http://svn.collaboa.org/svn/collaboa/trunk/ collaboa –username=anon –password=anon I’m going to use SQLLite for this [...]

Mongrel/WEBrick Forwarding in Apache

This will let you redirect an apache request to a local mongrel or webrick server. Very handy, yet maybe some logging of the used ports would be good at some point. <VirtualHost collaboa.example.com:80> Servername collaboa.example.com CustomLog /www/collaboa/logs/access.log combined ErrorLog /www/collaboa/logs/error.log ProxyPass / http://127.0.0.1:3005/ ProxyPassReverse / http://127.0.0.1:3005/ </VirtualHost>