Special headers and X-Accel-Redirect

Igor Sysoev igor at sysoev.ru
Mon Jun 6 19:10:16 MSD 2011


On Mon, Jun 06, 2011 at 03:15:05PM +0200, Kamil Gorlo wrote:
> Hi guys,
> 
> I have small problem with file download using X-Accel-Redirect. I am
> using Nginx as proxy before some REST API application, some of the
> requests are for big files which are located at other host - so I am
> using X-Accel-Redirect to download them. But I have also some metadata
> connected with file which I want to return in X-metadata header from
> REST API.
> 
> So, here is my config:

>         location /files {
>             internal;
>             rewrite ^/files(.*)$ $1 break;
> 
>             proxy_pass http://filestore;

location /files/ {
    internal;
    proxy_pass  http://filestore/;


-- 
Igor Sysoev



More information about the nginx mailing list