From: _why Date: 2007-01-25T02:08:00+09:00 Subject: Re: Clean URLs with Camping and Apache On Wed, Jan 24, 2007 at 05:05:05PM +0900, Max Cantor wrote: > Is there a good way to coax this behavior out of Camping? Camping doesn't work like Rails, so you shouldn't have to use RewriteRule to force the URLs. AddHandler fastcgi-script fcgi ScriptAlias / /usr/local/www/data/dispatch.fcgi/ If you're mounting on a subdirectory `my_app`: ScriptAlias /my_app /usr/local/www/data/dispatch.fcgi/ The dispatch.rb is like: #!/usr/bin/env ruby require 'rubygems' require 'camping/fastcgi' require 'my_app' Camping::Models::Base.establish_connection :adapter => 'sqlite3', :database => "/tmp/camping.db" Camping::FastCGI.start(MyApp) See also: * http://camping.rubyforge.org/classes/Camping/FastCGI.html * http://code.whytheluckystiff.net/camping/wiki/TheCampingServerForApache _why