Forums

x-accel-redirect

Hey, I am trying to make a downloadable file on my server, but in order to have it protected from some users I need to use X-Accel-Redirect. Is it possible to somehow edit the Nginx config to add new internal location so that when people will type in the url they can't download the file?

You can't make any changes to the headers for files served via our static files service I'm afraid, but you do have full control of any files you choose to serve "yourself", ie manually, using Python, from your web app...