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