Answer the question
In order to leave comments, you need to log in
How to get rid of getting a request in the queue when using nginx as an image cache?
Hello everyone,
There is an nginx server that serves images according to the following configuration
fastcgi_cache_path /media/ssd18/nginx-documents-cache levels=1:2 keys_zone=documents:100m inactive=30d max_size=250g;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
location /documents-cache/ {
try_files $uri /index.php =404;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_cache_key $request_uri;
fastcgi_cache documents;
fastcgi_cache_valid 200 30d;
include fastcgi_params;
}
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