Re: Stream module logging questions

2018-03-06 Thread Grzegorz Kulewski
Hello, Thank you for your answer. W dniu 01.03.2018 o 12:52, Roman Arutyunyan pisze: > Hello, > > On Thu, Mar 01, 2018 at 04:06:09AM +0100, Grzegorz Kulewski wrote: >> Hello, >> >> 1. How can I log the IP and (especially) the port used by nginx (proxy) to >> connect to upstream when stream mod

Re: Stream module logging questions

2018-03-06 Thread Maxim Konovalov
Hi Grzegorz, [..] >>> 3. I think that $tcpinfo_* aren't supported in stream. Is >>> there any reason for this? >> >> There's a number of http module features still missing in >> stream. This is one of them. > > I can offer virtual (and real if in Poland) beer for adding this. > :) > Just wonder

Re: Stream module logging questions

2018-03-06 Thread Grzegorz Kulewski
W dniu 06.03.2018 o 09:24, Maxim Konovalov pisze: > Hi Grzegorz, > > [..] 3. I think that $tcpinfo_* aren't supported in stream. Is there any reason for this? >>> >>> There's a number of http module features still missing in >>> stream. This is one of them. >> >> I can offer virtual (and

Check the size of one of the request header in nginx conf

2018-03-06 Thread mejetjoseph
Dear Team, I would like to know is it possible to check the size of one of header values in nginx conf file . I need to reset the header value if the size of this header value exceed 64 character. Could you please provide can I able to do this condition check in ngnix conf file? Kind regards, J

Re: Check the size of one of the request header in nginx conf

2018-03-06 Thread Aziz Rozyev
hi, I think you can do such a checking with lua/njs modules. br, Aziz. > On 6 Mar 2018, at 15:13, mejetjoseph wrote: > > Dear Team, > > I would like to know is it possible to check the size of one of header > values in nginx conf file . I need to reset the header value if the size of > t

Re: thread_pool in Windows

2018-03-06 Thread Valentin V. Bartenev
On Monday 05 March 2018 19:46:42 Sergey Sandler wrote: > Hi Maxim, > > Thank you for prompt reply. > > I suspect there would be no delays/timeouts if there was a single thread in > nginx that communicates with the upstream server. > There is no simple way to restrict nginx threads number to one i

Re: Routing based on ALPN

2018-03-06 Thread Vladimir Homutov
On Sun, Feb 25, 2018 at 08:16:18PM +0100, Wiktor Kwapisiewicz via nginx wrote: > >> Is there a way to access and save ALPN value to a variable? > > > > It should possible to parse the incoming buffer with > > https://nginx.org/r/js_filter and create a variable to make a routing > > decision on. >

Re: Check the size of one of the request header in nginx conf

2018-03-06 Thread Aziz Rozyev
by the way, there is easier solution to this (thanks to Ruslan Ermilov) something like this: map $http_ $disabled { ^.{65,} 1 } location / { if $disable { return 404; } proxy_pass http://upstream; } br, Aziz. > On 6 Mar 2018, at 15:16, Aziz Rozyev wrote: > > hi, > > I t

Re: thread_pool in Windows

2018-03-06 Thread Sergey Sandler
Thank you, Valentin. There is something I am missing. Please see the start of the error.log below, 2018/03/04 14:05:50 [notice] 5144#9212: using the "select" event method 2018/03/04 14:05:50 [notice] 5144#9212: using the "select" event method 2018/03/04 14:05:50 [notice] 5144#9212: nginx/1.12.2 2

add_before_body

2018-03-06 Thread li...@lazygranch.com
I can't get the add_before_body feature to work. I have verified the module is installed. Here is what I am trying to accomplish. I want to add the following lines to the header of every html file: -- This is supposed