I was reading on the X-Accel-Redirect header for nginx and it seems serves this purpose. I am not clear about the following:
Would ngx.exec serve the same purpose without adding the X-Accel-Redirect header if in the exec URL I point to an internal location defined in the nginx config file which would point to the file I want to serve?
Any guidance or information would be very helpful. Is any method preferred over the other? Is there any difference with respect to security?
Thanks!
On Thursday, September 15, 2016 at 3:02:53 PM UTC-7, ary...@yahoo.com wrote:
Hi,
I would like to serve a file on the server for download. I don't want to expose the path to the file since I don't want everyone to have access to the file. People who are authenticated would be able to download the file through a temporary link.
Any guidance on how this kind of scenario should be implemented would be really helpful.
Thanks