Re: max_ranges has no effect

2019-10-14 Thread Hett
Next headers resolve my issue proxy_set_header Range ""; proxy_hide_header Accept-Ranges; add_header Accept-Ranges none; Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285861,285876#msg-285876 ___ nginx mailing list

Re: max_ranges has no effect

2019-10-14 Thread Hett
Thanks, I thought so, and I thought nginx will delete this header via `max_ranges` directive. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285861,285875#msg-285875 ___ nginx mailing list nginx@nginx.org

IOS keep asking password with nginx auth_basic

2019-10-14 Thread tiendungitd
Hi there, I'm using nginx auth_basic "Restricted area" to protect website. So users have to enter user/pass one time to access, it work fine in computer. However, When testing with Ipad, everytime access to particular page which page extension is .ivp, it will require a credential, once I submit

Re: Trailing Slash Redirect Loop Help

2019-10-14 Thread Alex Med
Dear Francis: What I am perceiving from your answers is that if nginx can not know with (!-d or the try_files) that the uri is a directory or a file, there is not much it can do about not removing slashes from the uris it gets. Is there a way to tell nginx that if it gets a "/" from the

Re: Trailing Slash Redirect Loop Help

2019-10-14 Thread Alex Med
Dear Francis: What I am perceiving from your answers is that if nginx can not know with (!-d or the try_files) that the uri is a directory or a file. Is there a way to tell nginx that if it gets a "/" from the upstream to leave it the way it is? I guess I will give up the idea of having all

Re: read request body with http2

2019-10-14 Thread Ansuel
this is what i have in the module handler function rc = ngx_http_read_client_request_body(r, ngx_http_test_read_req); if (rc != NGX_OK && rc != NGX_AGAIN) { return rc; } And this is what i have in ngx_http_test_read_req char *buffer =

Re: поведение куки userid на preflight запросах

2019-10-14 Thread Maxim Dounin
Hello! On Sun, Oct 13, 2019 at 06:19:22PM +0500, Илья Шипицин wrote: > привет, > > столкнулись с тем, что модуль > > https://nginx.org/en/docs/http/ngx_http_userid_module.html#userid > > > выставляет куку в том числе на OPTIONS, который браузер отправляет без кук, > потому что CORS > >

Re: read request body with http2

2019-10-14 Thread Maxim Dounin
Hello! On Sun, Oct 13, 2019 at 08:47:16PM -0400, Ansuel wrote: > Hello, i'm developing a custom module that needs to read the request body to > get some data from it. > To read the request body i'm using > > ngx_http_read_client_request_body > > and in the callback i use > > for (in =

Re: ошибка "upstream prematurely closed connection" - обсудим ?

2019-10-14 Thread Maxim Dounin
Hello! On Sun, Oct 13, 2019 at 02:18:30PM +0500, Илья Шипицин wrote: > привет, > > предыстория. видим ошибку в логах. вспоминаем концепцию, что с уровнем > error логируются ошибки на стороне сервера. считаем, что ошибка > действительно была. идем к клиенту - у клиента статус 200, ему хорошо,

Re: max_ranges has no effect

2019-10-14 Thread Sergey Kandaurov
> On 14 Oct 2019, at 09:56, Hett wrote: > > Hello, > I want to disable resumable downloads. > Added max_ranges directive: > > >location ~ ^(/[^/]+/[^/]+/[^/]+) { >set $zone_limit_key $binary_remote_addr$host; >limit_req zone=req_free burst=10 nodelay; >limit_conn

Re: ошибка "upstream prematurely closed connection" - обсудим ?

2019-10-14 Thread Илья Шипицин
не мимо темы. мы просим из recv столько то данных, возвращается ноль. дальнейшую отладку попробую собрать пн, 14 окт. 2019 г. в 12:33, Evgeniy Berdnikov : > On Mon, Oct 14, 2019 at 11:59:44AM +0500, Илья Шипицин wrote: > >добавил отладку. > >в recv передается не ноль. из recv

Re: ошибка "upstream prematurely closed connection" - обсудим ?

2019-10-14 Thread Evgeniy Berdnikov
On Mon, Oct 14, 2019 at 11:59:44AM +0500, Илья Шипицин wrote: >добавил отладку. >в recv передается не ноль. из recv возвращается ноль. Значит процитированный фрагмент man recv и все домыслы вокруг него (насчёт специфики реализации в каком-то центосе) оказались мимо темы. Теперь самое

Re: ошибка "upstream prematurely closed connection" - обсудим ?

2019-10-14 Thread Илья Шипицин
добавил отладку. в recv передается не ноль. из recv возвращается ноль. вс, 13 окт. 2019 г. в 20:44, Илья Шипицин : > > > вс, 13 окт. 2019 г. в 20:11, Evgeniy Berdnikov : > >> On Sun, Oct 13, 2019 at 02:18:30PM +0500, Илья Шипицин wrote: >> >в одном месте - не завершается: >> > >>

max_ranges has no effect

2019-10-14 Thread Hett
Hello, I want to disable resumable downloads. Added max_ranges directive: location ~ ^(/[^/]+/[^/]+/[^/]+) { set $zone_limit_key $binary_remote_addr$host; limit_req zone=req_free burst=10 nodelay; limit_conn conn_free 1; max_ranges 0; rewrite