July 06, 2015 10:05AM

>>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 $cookie_user";
or by default is
proxy_cache_key $scheme$proxy_host$uri$is_args$args;

>>I plan to add "load balancing" module, which would be able to forward request on (multiple) source addresses to multiple proxied addresses, with caching.. Will it work properly?
if your nginx is acting as load balancer, I guess better add load balancing module.
Subject Author Posted

proxy_cache_key with variables

sz_g July 06, 2015 09:49AM

Re: proxy_cache_key with variables

xnirchan July 06, 2015 10:05AM

Re: proxy_cache_key with variables

Roman Arutyunyan July 06, 2015 11:46AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 242
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready