An additional note: The location instruction: location /support/userdoc/ { refers to a virtual directory. (It does not really exist in the file system, but is solely used as an entry point to the download) However, the Nginx access log indicates that the directory is being handled appropriately: [05/Jan/2020:11:11:15 -0800] "GET /support/userdoc/SII_Errata_14_Lgs_P22338-04A_e.pby nightbeacons - How to...
We have a large number of PDF files that are stored as LONGBLOBs in a MySQL database. We've written a Drupal-based PHP module that pulls the LONGBLOB data and formats it as a PDF download from the web page. The PHP module adds the Content-Type: application/pdf and Content-Length: and Accept-Ranges: bytes headers (via php "header()" function) and then echoes the LONGBLOB data. (Theby nightbeacons - How to...