Mack w/ Apache and mod_rails
Thanks to Mack user, Diogo Almeida, there’s a great write up on the wiki on how to configure Apache using mod_rails to host a Mack app. Â Thanks Diogo.
http://www.mackwiki.com/using_passenger_phusion_to_host_a_mack_application
Tags: apache, diogo almeida, mack, mod_rails, passenger

August 31st, 2008 at 3:04 pm
In addition to the steps detailed in the wikie page, I also had to add a config.ru file at the root of my Mack application. I copied the following from the mod_rails documentation site:
ENV["MACK_ENV"] = ENV["RACK_ENV"]
load(“Rakefile”)
require ‘rubygems’
require ‘mack’
run Mack::Utils::Server.build_app
September 1st, 2008 at 4:22 pm
Thanks DeLynn, obviously I forgot to put that in the wiki. My bad. Oops. I’ll add it now. In Edge Mack there’s a Passenger generator that will generate the config.ru file for you:
$ rake generate:passenger
September 2nd, 2008 at 11:20 am
I actually saw that generator in edge this weekend, just forgot to come back here an comment about it.
I really enjoyed playing with Mack this weekend. Hopefully I can contribute further once I get more familiar with the project. Keep up the great work!