Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This would allow us to trigger private file downloads without invoking Drupal or PHP, which would be a major performance win.
This would likely be done through integration with https://drupal.org/project/nginx_accel_redirect
Perusio (the module maintainer) will need to confirm first that the module is ready for this integration, and that works properly on both nginx and apache.
Comments
Comment #1
Dave ReidSubscribing since I'm interested in how we could support this in File entity as well.
Comment #2
hmartens CreditAttribution: hmartens commentedShould this sort out the large file downloads timing out? When I try to download a 700mb from my server it doesn't time out. When I download the large file from within Drupal it times out at about 80mb...
Comment #3
bojanz CreditAttribution: bojanz commentedYes. Timeouts happen because the files go through PHP.
This issue will allow the download to go straight through the web server.
Comment #4
hmartens CreditAttribution: hmartens commentedThanks Bojan. Is there a place where I can go look at what php settings needs to change to be able to download such big files?
Comment #5
bojanz CreditAttribution: bojanz commentedTime and memory limits probably, you will need to search for it (there is probably something in this queue)