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 configurati

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: https://forum.nginx.or

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: 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 nginx@nginx.or

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

2016-11-23 Thread noci
Hi, I have a strange problem. Setup: Internet ---> haproxy (SNI TLS Routing) --> nginx (Webserver) --> Websocket based server (WebRTC) haproxy has no certificates, it checks the TLS Hello message for :443 traffic and then forwards to the right server based on SNI. ==> haproxy cannot alter the st