Re: unable to log upstream_bytes_sent

2017-05-01 Thread Chad Hansen via nginx
Bumping; does anyone have experience using upstream_bytes_sent or upstream_byes_received? On Tue, Apr 25, 2017 at 2:53 PM Chad Hansen wrote: > I'm running nginx 1.11.9, and I get an error any time I try to use > bytes_sent, upstream_bytes_sent, or upstream_bytes_received. I've

unable to log upstream_bytes_sent

2017-04-25 Thread Chad Hansen via nginx
I'm running nginx 1.11.9, and I get an error any time I try to use bytes_sent, upstream_bytes_sent, or upstream_bytes_received. I've tried logging directly in a log format, or using in a map: map $request_method $chad_sent { default $upstream_bytes_sent; } map $request_method $chad_received {

Re: Cache based on custom header

2017-02-09 Thread Chad Hansen via nginx
gic I needed to use openresty, > which is an nginx bundle that adds a lot of customization points. > > Sent from my iPhone > > > On Feb 8, 2017, at 5:47 PM, Chad Hansen via nginx > wrote: > > > > I use nginx as a reverse proxy, and upstream clients have a need for my

Cache based on custom header

2017-02-08 Thread Chad Hansen via nginx
I use nginx as a reverse proxy, and upstream clients have a need for my service to cache differently than downstream servers. Is there a way to change what header nginx uses to accept cache settings? Or a way to re-write cache headers before the cache settings take affect? For example, I could ha

Re: limit_req_zone key cache lifetime

2016-07-14 Thread Chad Hansen
Great, thank you! On Thu, Jul 14, 2016 at 4:26 PM Maxim Dounin wrote: > Hello! > > On Thu, Jul 14, 2016 at 07:22:06PM +0000, Chad Hansen wrote: > > > I'm looking for documentation or explanation for how keys expire in the > > limit_req_zone. I have the basic d

limit_req_zone key cache lifetime

2016-07-14 Thread Chad Hansen
I'm looking for documentation or explanation for how keys expire in the limit_req_zone. I have the basic documenations here: *A client IP address serves as a key. Note that instead of $remote_addr, the $binary_remote_addr variable is used here. The $binary_remote_addr variable’s size is always 4 b