Answer the question
In order to leave comments, you need to log in
Nginx_storage doesn't work. What am I doing wrong?
Good day!
I tried to configure nginx_storage as a permanent cache, files are proxied but not written to storage.
location ~* /get_([0-9]+)/(.*).txt$ {
root /var/www;
try_files /nginx-store/$1.txt =404;
open_file_cache_errors off;
error_page 404 = /internal_$1/$2.txt;
}
location ~ /internal_([0-9]+)/(.*).txt$ {
internal;
proxy_pass http://serv2/$1/$2.txt;
proxy_ignore_headers "Cache-Control" "Expires" "Set-Cookie";
proxy_store /var/www/nginx-store/$1.txt;
proxy_store_access user:rw group:rw all:r;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question