setted x_sendfile_header to 'X-Accel-Redirect'

This commit is contained in:
Timothy N. Tsvetkov 2011-03-30 02:28:38 +04:00
parent 8839c68219
commit 432ecf2175
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ Rosa::Application.configure do
config.action_controller.perform_caching = true config.action_controller.perform_caching = true
# Specifies the header that your server uses for sending files # Specifies the header that your server uses for sending files
config.action_dispatch.x_sendfile_header = "X-Sendfile" # config.action_dispatch.x_sendfile_header = "X-Sendfile"
# For nginx: # For nginx:
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
# If you have no front-end server that supports something like X-Sendfile, # If you have no front-end server that supports something like X-Sendfile,
# just comment this out and Rails will serve the files # just comment this out and Rails will serve the files