Permalink
Browse files

Minor error in documentation regarding the order of parameters in HTT…

…P_X_ACCEL_MAPPING.
  • Loading branch information...
1 parent fe492ba commit ea72d6478240ee8e94df983893175908d0c8d1f4 @ioquatix ioquatix committed with rkh Jun 29, 2011
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/rack/sendfile.rb
View
@@ -41,16 +41,15 @@ module Rack
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#
# proxy_set_header X-Sendfile-Type X-Accel-Redirect;
- # proxy_set_header X-Accel-Mapping /var/www/=/files/;
+ # proxy_set_header X-Accel-Mapping /files/=/var/www/;
#
# proxy_pass http://127.0.0.1:8080/;
# }
#
# Note that the X-Sendfile-Type header must be set exactly as shown above. The
- # X-Accel-Mapping header should specify the by the location on the file system,
- # followed by an equals sign (=), followed name of the private URL pattern
- # that it maps to. The middleware performs a simple substitution on the
- # resulting path.
+ # X-Accel-Mapping header should specify the internal URI path, followed by an
+ # equals sign (=), followed name of the location in the file system that it maps
+ # to. The middleware performs a simple substitution on the resulting path.
#
# See Also: http://wiki.codemongers.com/NginxXSendfile
#

0 comments on commit ea72d64

Please sign in to comment.