Re: Nginx headers to be set at the time of request processing

2016-11-23 Thread CeeGeeDev
To be clear, this is for a custom http module we wrote. We want it to know about request headers that we set in the nginx.conf (for proxy_pass etc). But it doesn't seem like the custom module receives the modified request headers. Is there any way to both a) set a request header for proxy_pass but

Re: Nginx headers to be set at the time of request processing

2016-11-23 Thread Francis Daly
On Wed, Nov 23, 2016 at 01:22:42PM -0500, Sushma wrote: Hi there, > I understand that proxy_set_header sets headers before proxying the request > to the upstream server. proxy_set_header adds extra http headers to the request that nginx sends to its upstream as part of the proxy_pass

Nginx headers to be set at the time of request processing

2016-11-23 Thread Sushma
Hi all, I understand that proxy_set_header sets headers before proxying the request to the upstream server. Is there some way I can set the headers at the time of request processing itself not just before proxying to upstream servers? Thanks, Sushma Posted at Nginx Forum:

Re: 400 Bad Request

2016-11-23 Thread nerjin
Спасибо. В итоге заборол с помощью директивы proxy_redirect. Насчет forward proxy: а какая разница forward или reverse. Весь вопрос в том, кого считать клиентом, а кого upstream'ом. У меня такая конфигурация пока что отлично работает. Posted at Nginx Forum:

Re: Issue with websocket behind nginx behind a haproxy SNI TLS reverse proxy

2016-11-23 Thread noci
I tried both V1.10.1 and V1.11.6 same behaviour Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271128,271132#msg-271132 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: 400 Bad Request

2016-11-23 Thread Maxim Dounin
Hello! On Wed, Nov 23, 2016 at 05:27:20AM -0500, nerjin wrote: > Maxim Dounin Wrote: > --- > > Непонятно, впрочем, зачем вы вообще пытаетесь использовать форму > > запроса с абсолютным URI в строке запроса. В HTTP это используют > >

Re: Blocking tens of thousands of IP's

2016-11-23 Thread noci
fail2ban comes to mind (ipset + iptables + logscanner). http://www.fail2ban.org/ Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270680,271131#msg-271131 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: how to read $body_bytes_sent nginx variable

2016-11-23 Thread noci
Log through syslog to another system? If the other system isn't listening there is no harm done... (Slightly more network traffic). Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271108,271130#msg-271130 ___ nginx mailing list

Re: 400 Bad Request

2016-11-23 Thread nerjin
Maxim Dounin Wrote: --- > Непонятно, впрочем, зачем вы вообще пытаетесь использовать форму > запроса с абсолютным URI в строке запроса. В HTTP это используют > исключительно для запросов к forward proxy (в HTTP/1.0 только > это и было