Re: proxy_cache_key with variables

2015-07-06 Thread Roman Arutyunyan
> On 06 Jul 2015, at 16:49, sz_g wrote: > > I've just created a configuration composed of two servers. > Both just forwards traffic from different ports (and protocols) to different > servers, and keep responses in cache. It works nice. > > For both servers "GET /" request is sent, in the respo

Re: proxy_cache_key with variables

2015-07-06 Thread xnirchan
Hi, >>proxy_cache_key "$upstream_addr*$request"; I am not sure that you are using the correct format for proxy_cache_key directive. my I know what is the wildcard char "*" doing out there, between $upstream_addr and $request? refer to nginx directive example: proxy_cache_key "$host$request_uri $c

proxy_cache_key with variables

2015-07-06 Thread sz_g
I've just created a configuration composed of two servers. Both just forwards traffic from different ports (and protocols) to different servers, and keep responses in cache. It works nice. For both servers "GET /" request is sent, in the response there is proper resource. Thus (to distinguish resp