Browse files

[asset pipeline] update snippet to reflect patch

Two commented lines in example to match the
commit (8845ae6)
  • Loading branch information...
1 parent 32da2f8 commit 49e81f21a3e6facac06c49739644dbb36c94f794 Richard Hulse committed with fxn Aug 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/guides/source/asset_pipeline.textile
@@ -390,7 +390,8 @@ The X-Sendfile header is a directive to the server to ignore the response from t
Apache and nginx support this option which is enabled in <tt>config/environments/production.rb</tt>.
-config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx
+# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
+# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
WARNING: If you are upgrading an existing application and intend to use this option, take care to paste this configuration option only into +production.rb+ (and not +application.rb+) and any other environment you define with production behavior.

0 comments on commit 49e81f2

Please sign in to comment.