Error - Using Nginx Proxy Cache
naidile.pn
naidilepn at gmail.com
Fri May 15 08:44:34 UTC 2020
Hi All,
We are using proxy cache to cache the response from upstream for a day.
But, when the cache expires, API stops responding with 500.
Getting the error: open() "proxycachepath" failed (13: Permission denied)
On reloading the nginx, server is able to connect to upstream and cache
response for the first time and works for next one day.
Below is the nginx rule :
location /somelocation {
add_header X-Proxy-Cache $upstream_cache_status;
proxy_cache my_zone;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
proxy_cache_valid 200 1440m;
proxy_cache_use_stale error timeout http_500 http_502
http_503 http_504;
proxy_pass someupstream;
proxy_pass_request_headers on;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 120;
}
Can anyone please help here.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200515/cd6a722a/attachment.htm>
More information about the nginx-devel
mailing list