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 tried > logging di

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