I want use apache with nginx reverse proxy and i want use nginx cache.
I add:
proxy_cache_path /tmp/nginx/cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m;
to
/etc/nginx/nginx.conf
http section
and
/usr/local/directadmin/data/users/user/domains/domain.tld.cust_nginx
proxy_cache my-cache;
proxy_cache_valid 3s;
proxy_no_cache $cookie_PHPSESSID;
proxy_cache_bypass $cookie_PHPSESSID;
proxy_cache_key "$scheme$host$request_uri";
location / section
and i don't have any cache files in /tmp/nginx/cache
what is wrong?
I add:
proxy_cache_path /tmp/nginx/cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m;
to
/etc/nginx/nginx.conf
http section
and
/usr/local/directadmin/data/users/user/domains/domain.tld.cust_nginx
proxy_cache my-cache;
proxy_cache_valid 3s;
proxy_no_cache $cookie_PHPSESSID;
proxy_cache_bypass $cookie_PHPSESSID;
proxy_cache_key "$scheme$host$request_uri";
location / section
and i don't have any cache files in /tmp/nginx/cache
what is wrong?