Enable X-Sendfile support under Passenger
Passenger doesn't behave like a proxy server. But it does support X-Sendfile. So let's make use of that.
This commit is contained in:
parent
2240206554
commit
cae4b5c539
2 changed files with 4 additions and 3 deletions
|
@ -7,8 +7,8 @@ class FileController < ApplicationController
|
|||
|
||||
layout 'default'
|
||||
|
||||
before_filter :dnsbl_check, :check_authorized
|
||||
before_filter :check_allow_uploads, :except => [:file, :blahtex_png]
|
||||
before_filter :check_authorized
|
||||
before_filter :check_allow_uploads, :dnsbl_check, :except => [:file, :blahtex_png]
|
||||
|
||||
def file
|
||||
@file_name = params['id']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue