nginx SSL/SNI phase

2014-03-16 Thread Richard Kearsley
Hi I came across this 'issue' on the lua module about having the ability to control which SSL certificate is used based on a Lua module handler: https://github.com/chaoslawful/lua-nginx-module/issues/331 I believe at the moment, this phase isn't exposed so there is no way to hand it off to a mo

Re: increasing open files limit

2014-03-16 Thread Steve Holdoway
On Mon, 2014-03-17 at 00:53 -0400, bignginxfan wrote: > I am trying to increase the limit on open files for nginx. I've set cat > /proc/sys/fs/file-max to 100, set worker_rlimit_nofile to 8388608 but I > still keep getting errors like: > > setrlimit(RLIMIT_NOFILE, 8388608) failed (1: Operation

increasing open files limit

2014-03-16 Thread bignginxfan
I am trying to increase the limit on open files for nginx. I've set cat /proc/sys/fs/file-max to 100, set worker_rlimit_nofile to 8388608 but I still keep getting errors like: setrlimit(RLIMIT_NOFILE, 8388608) failed (1: Operation not permitted) accept4() failed (24: Too many open files) How

Re: How to send proxy cache status to backend server?

2014-03-16 Thread Maxim Dounin
Hello! On Sat, Mar 15, 2014 at 01:14:51PM +0530, Makailol Charls wrote: > I have been using add_header to send cache status to downstream server or > client like this. This is working fine. > add_header Cache-Status $upstream_cache_status; > > Now I tried proxy_set_header to send header to upstr

Re: [PATCH] RFC: ngx_http_upstream_process_upgraded: Allocate buffers also for data from upstream

2014-03-16 Thread Maxim Dounin
Hello! On Sat, Mar 15, 2014 at 11:11:51PM +0100, Thomas Glanzmann wrote: > While using the ugprade funcationality of nginx to tunnel propiertary > HTTP commands I noticed that data were only passing through from > upstream to downstream but not the other way around. The reason for that > was that