Welcome! Log In Create A New Profile

Advanced

Re: Special headers and X-Accel-Redirect

June 06, 2011 11:12AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Special headers and X-Accel-Redirect

Kamil Gorlo June 06, 2011 09:16AM

Re: Special headers and X-Accel-Redirect

Kamil Gorlo June 06, 2011 09:18AM

Re: Special headers and X-Accel-Redirect

Kamil Gorlo June 06, 2011 10:36AM

Re: Special headers and X-Accel-Redirect

António P. P. Almeida June 06, 2011 10:42AM

Re: Special headers and X-Accel-Redirect

wideawake August 28, 2012 07:43PM

Re: Special headers and X-Accel-Redirect

Igor Sysoev June 06, 2011 11:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 235
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready