Camping, Mongrel and Static Files
After some time, I continued to work on my latest Camping project. But unfortunately, I didn’t work as expected. The problem is easily spotted, static files were not delivered, the dynamics were just fine.
To cut it short: The solution is simple. There is a slight incompatibility
concerning the X-Sendfile
header between Camping and Mongrel v 1.1.3
(ref. 1).
Until the problem is solved in v 1.1.4 you shall simply stick to the older
Mongrel.
In order to get Camping to use it you need to change the camping executable. I
recommend using the latest version of Camping from the Subversion repository.
You may download it with a simple svn co
http://code.whytheluckystiff.net/svn/camping/trunk camping
. The change is in
bin/camping
around line 88:
...
begin
gem 'mongrel', "<1.1.3"
require 'mongrel'
require 'mongrel/camping'
...
A simple rake gem
and sudo gem install pkg/camping-1.8.gem
will install the
changes to your system.
Happy Camping, again.

My name is Gregor Schmidt. I am a freelance Ruby and JavaScript web developer based in Berlin, Germany. I do Ruby and Rails since 2005, JavaScript since 2006. I wrote my first Redmine plugin in 2007.
I mainly work with Rails, Backbone, and Bootstrap, but I am also good at picking up new frameworks, since I will probably know most of their concepts from other projects.
If your interested in more of my previous work have a look at my portfolio. I have also published my rates for everybody to see. I would love to hear, how I may help you.