Send nginx X-Accel-Redirect request from remote server
Posted
by
phingage
on Server Fault
See other posts from Server Fault
or by phingage
Published on 2012-09-07T14:51:12Z
Indexed on
2012/09/07
15:39 UTC
Read the original article
Hit count: 168
I have 2 server first (domain.com) is a django/apache server, second (f1.domain.com) is a file server (nginx) where some files are protected and should be allow download only to registred user, so i have setup a nginx server with a
server {
listen 80 default_server;
server_name *.domanin.com;
access_log /home/domanin/logs/access.log;
location /files/ {
internal;
root /home/domanin;
}
}
and from django I send a request via X-Accel-Redirect header, but dosen't work i think because come from a remote server, how can i accomplish my task?
regards!
© Server Fault or respective owner