Serving protected files using Nginx's X-Accel-Redirect header
- by andybak
I'm trying to serve protected files using this directive in my nginx.conf:
location /secure/ {
internal;
alias /home/ldr/webapps/nginx/app/secure/;
}
I'm passing in paths in the form: "/myfile.doc"
and the file's path would be: /home/ldr/webapps/nginx/app/secure/myfile.doc
I just get 404's when I access "http:…