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.
Problem/Motivation
Nginx is returning 500 Status code when downloading file with xsendfile
I found that there are two leading // in the beginning of the filepath.
Proposed resolution
remove base_path() from file_path
This works for me, not sure if it has any other implications ( eg for apache setup)
Comment | File | Size | Author |
---|---|---|---|
#2 | xsendfile-filepath-3357665-2.patch | 758 bytes | hatsch |
Comments
Comment #2
hatsch CreditAttribution: hatsch commented