Re: How to disable request pipelining on nginx upstream

2016-09-16 Thread B.R.
On Thu, Sep 15, 2016 at 11:12 PM, hkahlouche wrote: > Can you please confirm, if no new request is sent to the upstream before > the > entire response is received for the ongoing request (ongoing request > finished)? > In other words, is possible that upstream module sends the next request to > u

Re: how to get common name from client cert in TLS connection instead of HTTPS

2016-09-16 Thread B.R.
It seems the variable you are refering to belongs to the ngx_http_ssl_module, suitable for HTTPS, not in the ngx_stream_ssl_module, suitable for generic TLS. --- *B. R.* On Fri, Sep 16, 2016 at 5:19 AM, Albert Zhang wrote: > how to get common name from client cert in TLS connection instead of >

Nginx module development related query

2016-09-16 Thread Sumeet Chhetri
Hi All, I have been working on developing an nginx module for one of my c++ web framework and in the process have also read a lot of nginx blogs to understand and come up with an nginx module of my own for my framework. I had a small query related to serving static files within a module handler.

Re: How to disable request pipelining on nginx upstream

2016-09-16 Thread hkahlouche
​>> AFAIK, 2 different requests are served separately, meaning you can have >> some requests sent when some other is being responded to. >> >> If you talk about the same request, then it is only sent to the next >> upstream server when there is an 'unsuccessful attempt' at communicating >> with the

http Port 3000

2016-09-16 Thread Admire Mutsikiwa
Hi, I am very new to NGINX. I am running Libki services which is accessible on port 3000 via http service e.g http://10.12.1.25:3000 . My service is being overwhelmed on the CPU side. The Libki system is used as a Internet Cafe system. I would like to use NGINX as a Load balancer by implementin

Disable Port removing on rewrite

2016-09-16 Thread Schütrumpf, Niklas
Hello, during the conversion of my web servers at home I ran into some problems. We are running more than one web servers at home and a few ports are open in the router for them. So the standard ports (80, 443) are blocked for other server in our network. One NGINX Server listens on port 80, and o

listen proxy_protocol and rewrite redirect scheme

2016-09-16 Thread adrhc
Hi, I have this setup: the browser request (https on 443) is received by sshttp which sends it to stunnel:1443 which proxy it to nginx:1080. When nginx receives the request it has $scheme = "http"; so, for any rewrite with "permanent" or "redirect" the Location header uses "http" while I really ne

Re: Disable Port removing on rewrite

2016-09-16 Thread Francis Daly
On Fri, Sep 16, 2016 at 02:39:04PM +, Schütrumpf, Niklas wrote: Hi there, > One NGINX Server listens on port 80, and our router routes port 8081 from > outside to port 80 locally. > On any rewrite NGINX strips the port from the URL. This is the server because > I get a connection to the ser

Re: Disable Port removing on rewrite

2016-09-16 Thread Schütrumpf, Niklas
16. September 2016 19:34, "Francis Daly" schrieb: > * Since you already rewrite all requests that do not end in /; if you can > confirm that your clients send the name:port in the Host header that > they send, then you could change the rewrite destination to explicitly > include that: > > rewrite

Re: listen proxy_protocol and rewrite redirect scheme

2016-09-16 Thread Francis Daly
On Fri, Sep 16, 2016 at 11:12:16AM -0400, adrhc wrote: Hi there, > the browser request (https on 443) is received by sshttp which sends it to > stunnel:1443 which proxy it to nginx:1080. > When nginx receives the request it has $scheme = "http"; so, for any rewrite > with "permanent" or "redirect

Re: Disable Port removing on rewrite

2016-09-16 Thread Francis Daly
On Fri, Sep 16, 2016 at 06:05:34PM +, Schütrumpf, Niklas wrote: > 16. September 2016 19:34, "Francis Daly" schrieb: Hi there, > > rewrite ^(.*[^/])$ http://$http_host$1/ permanent; > > > > This would break any clients that do not send the Host: header that you > > expect -- possibly that ma

Re: Cache always in "UPDATING"

2016-09-16 Thread vlad0
Disabling "aio threads" totally fixed my problem, it had appeared after i had enabled it. I wasn't able to reproduce myself so i couldn't get a debug log when it triggers.. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269545,269632#msg-269632 ___

Re: listen proxy_protocol and rewrite redirect scheme

2016-09-16 Thread adrhc
yep, that's exactly my problem: "... but that will not help internally-generated things like the trailing-slash redirect for directories." I'll check your solution though I'm very open for other too :D PS: I do compile my own custom nginx Posted at Nginx Forum: https://forum.nginx.org/read.php?