Like the title say.
subscribe
For now, you can use D7 version of http://drupal.org/project/nginx_accel_redirect instead, and modify one line, change:
header('X-Accel-Redirect: ' . base_path() . variable_get('file_private_path', '') . '/' . file_uri_target($uri));
to
header('X-Sendfile: ' . drupal_realpath($uri));
PS: I think these two modules should really merge into one, the real functional difference is just this one line.
i ported and merged both modules. http://drupal.org/project/xsendfile
Its really unnecessary to create a new module rather upgrading this one. @e-anima do you want access to the repo?
heshan it is already done and i merged it with xsend accel. this module is somehow a complete rewrite and more of this one here.
Comments
Comment #1
marcoka commentedsubscribe
Comment #2
jrao commentedFor now, you can use D7 version of http://drupal.org/project/nginx_accel_redirect instead, and modify one line, change:
to
PS: I think these two modules should really merge into one, the real functional difference is just this one line.
Comment #3
marcoka commentedi ported and merged both modules.
http://drupal.org/project/xsendfile
Comment #4
hypertext200Its really unnecessary to create a new module rather upgrading this one. @e-anima do you want access to the repo?
Comment #5
marcoka commentedheshan it is already done and i merged it with xsend accel. this module is somehow a complete rewrite and more of this one here.