Skip to content

Commit

Permalink
Fixes the nginx #send_file configuration example.
Browse files Browse the repository at this point in the history
  • Loading branch information
matiaskorhonen authored and rtomayko committed May 26, 2010
1 parent d1ffcae commit 609ecd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rack/sendfile.rb
Expand Up @@ -31,19 +31,19 @@ class File #:nodoc:
# a private "/files/" area, enable X-Accel-Redirect, and pass the special
# X-Sendfile-Type and X-Accel-Mapping headers to the backend:
#
# location /files/ {
# location ~ /files/(.*) {
# internal;
# alias /var/www/;
# alias /var/www/$1;
# }
#
# location / {
# proxy_redirect false;
# proxy_redirect off;
#
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#
# proxy_set_header X-Sendfile-Type X-Accel-Redirect
# proxy_set_header X-Sendfile-Type X-Accel-Redirect;
# proxy_set_header X-Accel-Mapping /files/=/var/www/;
#
# proxy_pass http://127.0.0.1:8080/;
Expand Down

0 comments on commit 609ecd5

Please sign in to comment.