Welcome! Log In Create A New Profile

Advanced

keys_zone should be unique?

September 11, 2012 03:27PM
Hello

I have a big and simple question here;
I would like to use nginx as reverse proxy for eleven websites and caching all content to avoid CPU load on origin...

But I have a question, this parameter keys_zone should be always unique?

I'm using this way:

proxy_cache_path /var/www/cache levels=1:2 keys_zone=cache-defaults:8m max_size=1000m inactive=600m;

And ALL websites I'm setting on this way:

location / {
proxy_pass http://www.mywebiste.com$request_uri;
proxy_cache cache-defaults;

proxy_cache_bypass $not_cache;
proxy_no_cache $not_cache;
}


Sometimes the page from "myanotherwebsite.com" shows on "mywebsite.com" ....
Why?

If I need to setup it different, how it should be?

Thank you
Subject Author Posted

keys_zone should be unique?

e0xbr September 11, 2012 03:27PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 342
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