Finally, a solution.
After spending days on this, i got to a solution: use a Lighty specific header.

Instead of:
@headers['X-Sendfile'] = full_path

Use:
@headers['X-LIGHTTPD-Send-file'] = full_path

There is still the need of the:
fastcgi.server = ( "..." => (( ..., "allow-x-send-file" => "enable" )))

http://trac.lighttpd.net/trac/changeset/1097/branches/lighttpd-merge-1.4.x/doc/fastcgi.txt

Wget logs the headers correctly:
$ wget -d -S http://machine:port/webapp -o log
$ wget -d -S http://machine:port/webapp/static/img001.jpg -o log

TY zimbatm for the refactor.

http://pastebin.com/mdd73c8b

-- 
pedro mg
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to