aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorRichard Hulse <richard.hulse@radionz.co.nz>2011-08-08 22:21:25 +1200
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:33 -0700
commit49e81f21a3e6facac06c49739644dbb36c94f794 (patch)
treea57a8644d7b1a3b4a8280de6e361b0aa3c19a2a2 /railties/guides/source
parent32da2f864eb9e1f626f25e5d46a38d0c0d214d15 (diff)
downloadrails-49e81f21a3e6facac06c49739644dbb36c94f794.tar.gz
rails-49e81f21a3e6facac06c49739644dbb36c94f794.tar.bz2
rails-49e81f21a3e6facac06c49739644dbb36c94f794.zip
[asset pipeline] update snippet to reflect patch
Two commented lines in example to match the commit (8845ae683e2688)
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/asset_pipeline.textile3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index 3eede31572..8a4d61dc3a 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/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>.
<erb>
-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
</erb>
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.