Welcome! Log In Create A New Profile

Advanced

Re: Nginx Upload Progress Module stops functioning once behind reverse-proxy

Francis Daly
February 16, 2015 03:54PM
On Mon, Feb 16, 2015 at 02:55:51PM -0500, Ben Johnson wrote:

Hi there,

> I've recently compiled nginx-1.7.10 with a third-party upload-progress
> tracking module, which is described at
> http://wiki.nginx.org/HttpUploadProgressModule .

Read the first two paragraphs on that page...

> This module works perfectly well, until I attempt to put the entire
> setup behind a reverse-proxy.

....and draw a picture of what happens when a client sends a 1MB upload
to nginx, and nginx sends it via proxy_pass to an upstream. That should
show you why it fails.

> With this configuration, the upload progress reporting functions
> correctly *only* if I access the reverse-proxy port directly, at
> https://example.com:1337.

Yes.

That's what nginx does.

Why does there need to be an upload_progress module in the first place,
instead of letting the upstream server take care of it?

In this case, you have put your upload_progress module on your upstream
server.

Not going to work. At least until you can use an "unbuffered
upload". Which is not in current nginx. (But is in other things.)

f
--
Francis Daly francis@daoine.org

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

Nginx Upload Progress Module stops functioning once behind reverse-proxy

Ben Johnson February 16, 2015 02:56PM

Re: Nginx Upload Progress Module stops functioning once behind reverse-proxy

Francis Daly February 16, 2015 03:54PM

Re: Nginx Upload Progress Module stops functioning once behind reverse-proxy

Ben Johnson February 17, 2015 09:32PM

Re: Nginx Upload Progress Module stops functioning once behind reverse-proxy

Francis Daly February 18, 2015 04:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 143
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