From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.192.141 with SMTP id dq13csp77323qcb; Wed, 14 Mar 2012 00:23:05 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCKqMh5z5ERDVjoH7BBoE_svH5g@googlegroups.com designates 10.50.36.230 as permitted sender) client-ip=10.50.36.230; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCKqMh5z5ERDVjoH7BBoE_svH5g@googlegroups.com designates 10.50.36.230 as permitted sender) smtp.mail=rack-devel+bncCKqMh5z5ERDVjoH7BBoE_svH5g@googlegroups.com; dkim=pass header.i=rack-devel+bncCKqMh5z5ERDVjoH7BBoE_svH5g@googlegroups.com Received: from mr.google.com ([10.50.36.230]) by 10.50.36.230 with SMTP id t6mr1657888igj.5.1331709784127 (num_hops = 1); Wed, 14 Mar 2012 00:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=lXiyK4yHuGuqSqL3x8phYU7CoDLgm2NzwMO4XiWnFLg=; b=v1ZDiHMHbkFaMTAGS4TmhZKxrOpIpnkvzwSSw4si8HPdXI27A7bTA4lx5o8xZptPYw wIldO33he76lVFP3YX+mi4NFxW3mtUW/dl+H3f35ee63krXjsomWFaG/lHCqFFXUgi+P 1+OqD9TwaKsKJq1aDOF/1DDYH1RdFW8WbthIM= Received: by 10.50.36.230 with SMTP id t6mr473138igj.5.1331709781503; Wed, 14 Mar 2012 00:23:01 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.50.92.72 with SMTP id ck8ls10375041igb.2.canary; Wed, 14 Mar 2012 00:23:00 -0700 (PDT) Received: by 10.50.158.229 with SMTP id wx5mr3607796igb.0.1331709780191; Wed, 14 Mar 2012 00:23:00 -0700 (PDT) Received: by 10.50.213.40 with SMTP id np8msigc; Tue, 13 Mar 2012 23:04:13 -0700 (PDT) Received: by 10.68.226.136 with SMTP id rs8mr339337pbc.2.1331705053418; Tue, 13 Mar 2012 23:04:13 -0700 (PDT) Date: Tue, 13 Mar 2012 23:04:12 -0700 (PDT) From: Carlos To: rack-devel@googlegroups.com Message-ID: <351894.8.1331705052859.JavaMail.geo-discussion-forums@pbqv9> Subject: Correction to Rack::Sendfile documentation (X-Accel-Mapping) MIME-Version: 1.0 X-Original-Sender: c.crasborn@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary="----=_Part_7_15582358.1331705052858" ------=_Part_7_15582358.1331705052858 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I believe there's a mistake in the Rack:Sendfile documentation @ http://rack.rubyforge.org/doc/Rack/Sendfile.html proxy_set_header X-Accel-Mapping /files/=/var/www/; should be proxy_set_header X-Accel-Mapping */var/www/=/files/*; Thanks, Carlos ------=_Part_7_15582358.1331705052858 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
Hi,

I believe there's a mistake in the Rack:Sendfile documentation @ http://rack.rubyforge.org/doc/Rack/Sendfile.html

proxy_set_header   X-Accel-Mapping     /files/=/var/www/;
should be
proxy_set_header   X-Accel-Mapping     /var/www/=/files/;

Thanks,
Carlos
------=_Part_7_15582358.1331705052858--