Re: connection close on 500, 503, 502.

2014-11-06 Thread newnovice
ping ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254535,254639#msg-254639 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: connection close on 500, 503, 502.

2014-11-04 Thread newnovice
I have this in config: --- error_page 404 =400; error_page 500 502 503 504 =500 @close_conns; location @close_conns { internal; keepalive_timeout 0; } I still see 502's behind returned in '$status' - Why would this happen? I was expecting to s

Re: connection close on 500, 503, 502.

2014-11-03 Thread newnovice
Thank you MAXIM - you have been the most responsive & helpful on these forums. GREATLY APPRECIATED. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254535,254548#msg-254548 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mail

Re: connection close on 500, 503, 502.

2014-11-03 Thread newnovice
Can i just do this: error_page 404 =400; error_page 502 =500 @close_conns; location @close_conns { internal; keepalive_requests 0; } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254535,254546#msg-254546 ___

Re: connection close on 500, 503, 502.

2014-11-03 Thread newnovice
Can i do something like: (i don't really need a page necessarily - i am purely interested in changing the connection from keep-aline to connection-close) error_page 500 502 503 504 /ServiceUnavailableError.xml; location = /ServiceUnavailableError.xml { root /error_pages/;

connection close on 500, 503, 502.

2014-11-03 Thread newnovice
Hi There, I want to send a connection_close to the client whenever the HTTP status is any of the 50X codes. How could i accomplish this? Thanks for your response. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254535,254535#msg-254535 ___

Re: Trying to Understand Upstream Keepalive

2014-10-29 Thread newnovice
"isn't enough room in the cache." how big is the upstream keepalive connection-pool cache size? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249924,254426#msg-254426 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/l

Re: Trying to Understand Upstream Keepalive

2014-10-29 Thread newnovice
Maxim Dounin Wrote: --- > Hello! > > On Tue, Oct 28, 2014 at 08:01:33PM -0400, newnovice wrote: > > > Maxim, > > > > > http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive > > > &g

Re: Trying to Understand Upstream Keepalive

2014-10-28 Thread newnovice
Maxim, http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive I would like to know what is the keepalive timeout for this connection pool? Is it static? Also i want to understand - if there is a marriage between number of connections nginx gets vs how many it opens to upstream?

Re: can a map + regex be used to generate variables for YYYY-MM-DD-HH?

2014-10-24 Thread newnovice
cool so adding the maps & access_log config at http level solved both problems, all logs now goto variable named file. there is no file with --- in the name anymore. thanks! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254210,254256#msg-254256 __

Re: can a map + regex be used to generate variables for YYYY-MM-DD-HH?

2014-10-24 Thread newnovice
1. variable in logname is what i want: access_log.-MM-DD-HH I have other log munging daemons looking for this date formatted file in real time (other options i have tried, hard linking files, used named pipes...) 2. (currently i use this method) 'if' - inside server - outside location - works.

Re: can a map + regex be used to generate variables for YYYY-MM-DD-HH?

2014-10-23 Thread newnovice
Where I am going with this is - I want to write error & access - logs out with the '-MM-DD-HH' suffix. So i need these variables. The 'if' statement is not allowed outside the server{} - I am at a loss due to this. Please con you show me some examples of how to set these variables with a ma

can a map + regex be used to generate variables for YYYY-MM-DD-HH?

2014-10-22 Thread newnovice
can a map + regex be used to generate variables for -MM-DD-HH? I cant use 'if' in the location i am trying this. -- I know i can do: if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})") { set $year $1; set $month $2; set $day $3; } or with perl regex: if ($time_iso8601 ~ "^(\d{4})-

Re: reverse ssl proxy - speed & jitter

2014-07-24 Thread newnovice
this is for a very fast internal only API driven service and not serving webpages/static files/multimedia... Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252002,252024#msg-252024 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.o

Re: reverse ssl proxy - speed & jitter

2014-07-24 Thread newnovice
What is the fastest SSL connection setup time that anyone can achieve? and also how do i reduce the jitter/variance.. so what settings should I take out & what shud i have - do you have an example of an optimal config? the logs are turned off to see first if this is even a viable option, i can

Re: reverse ssl proxy - speed & jitter

2014-07-23 Thread newnovice
Full Config: #user nobody; # This number should be, at maximum, the number of CPU cores on your system. # (since nginx doesn't benefit from more than one worker per CPU.) worker_processes 5; #give worker processes the priority (nice) you need/wish, it calls setpriority(). worker_priority -10;

reverse ssl proxy - speed & jitter

2014-07-23 Thread newnovice
I am setting up a nginx reverse ssl proxy - I have a machine I can use with 2 E5-2650 CPU's and lots of RAM. I have nginx-1.6.0 + openssl-1.0.1h installed. I have taken into consideration most optimization suggestions out there and incorporated them. I will attach a copy of my config file. (optim

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-19 Thread newnovice
1. Where can i get a full list of these disabled headers: "By default, nginx does not pass the header fields “Date”, “Server”, “X-Pad”, and “X-Accel-...” from the response of a proxied server to a client. The proxy_hide_header directive sets additional fields that will not be passed. If, on the co

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-19 Thread newnovice
n the upstream_http_connection header in the response ??? Thanks for your help... Valentin V. Bartenev Wrote: --- > On Saturday 17 May 2014 11:28:33 newnovice wrote: > > Can I proxy_pass on the way back also - and preserve a

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-17 Thread newnovice
Can I proxy_pass on the way back also - and preserve all headers coming from the upstream service? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237386,250172#msg-250172 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-16 Thread newnovice
Does this also affect a 'Connection Close' header coming from the upstream service - being sent as a connect-keep-alive to the requesting client thru my nginx ssl reverse proxy? (I am trying to setup nginx as an SSL proxy; when the upstream service sends a connection close I want this to be passe