Maxim Dounin
January 20, 2014 07:58AM
Hello!

On Mon, Jan 20, 2014 at 02:14:26PM +0530, Makailol Charls wrote:

> Hello,
>
> I use Nginx/1.4.4 as a reverse proxy caching server for multiple sites. So
> far I have been using same proxy_cache_path for all sites. Now I want to
> use separate cache path for all sites.
>
> Is there anyway to make proxy_cache_path dynamic i.e. using some variable
> in proxy_cache_path like $host ?

No, proxy_cache_path must be known without a request for cache
loader and cache manager to work. Therefore it's not possible to
use variables in proxy_cache_path, you have to explicitly define
all caches you want to use.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to define dynamic proxy_cache_path directory.

Makailol Charls January 20, 2014 03:46AM

Re: How to define dynamic proxy_cache_path directory.

Maxim Dounin January 20, 2014 07:58AM

Re: How to define dynamic proxy_cache_path directory.

Makailol Charls January 21, 2014 03:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready