Re: proxy_pass redirect for address without trailing slash disregards Host port

2019-08-23 Thread Jeffrey 'jf' Lim
The host is defined by the server, surely, and not by what the client tells the server it is? And you tell the server what host it is by the server_name directive ( https://nginx.org/en/docs/http/ngx_http_core_module.html#server_name). -jf On Sat, 24 Aug 2019, 01:39 Nuno Gonçalves, wrote: > I a

lzw compression

2019-08-23 Thread Mark Lybarger
Hi, I have embedded clients using my REST api (HTTP POST/GET etc). We want to be able to compress the client data over the wire so that there are fewer packets. Apparently, in some markets, people still pay by the MB. The embedded client can only support LZW compression due to available memory/

proxy_pass redirect for address without trailing slash disregards Host port

2019-08-23 Thread Nuno Gonçalves
I am using proxy_pass and I'm facing a issue which I'm not sure it's a bug. It is in regard to the behaviour specified by the documentation [1]: If a location is defined by a prefix string that ends with the slash character, and requests are processed by one of proxy_pass, fastcgi_pass, uwsgi_pas

PoC: patch for x-ratelimit headers

2019-08-23 Thread Roberto Polli
Hi all, I stubbed an implementation of ratelimit-headers in nginx. It's just a PoC and it's not intented to be merged, but just to be a basis for discussion. The patch is here: - https://github.com/ioggstream/nginx/pull/1/files Feedback is welcome! Have a nice day, R.