Proxy uploading

Igor Sysoev igor at
Thu Jul 29 17:14:26 MSD 2010

On Thu, Jul 29, 2010 at 03:11:13PM +0200, Tim Child wrote:

> > These directives hide/pass header from upstream to client:
> I don't need as far as I know to send the Cookie and Referer to the upstream server, but the content-length is needed for the file I think.
> > 
> >>           proxy_hide_header Referer;
> >>           proxy_hide_header Cookie;
> >>           proxy_pass_header Content-Length;

If you do not want to pass Cookie and Referer to the upstream, then you
should use:

      proxy_set_header   Cookie    "";
      proxy_set_header   Referer   "";

Igor Sysoev

More information about the nginx mailing list