Hello! Help me please to resolve my problem with crop() on Nginx. This function doesn’t work properly but I don’t understand why. When I use function crop() in my gallery page link of image leads to “/media/pages/gallery/…/…360x.jpg” but there is no file at this location and when I’m trying to open this link on a new page I get the original file with its original sizes. When I use Apache this problem disappeared. I am temporary sets access rights to -R 777
I am using PHP Version 7.4.11
My config Nginx:
server {
root /mnt/data/sites/profit-spb.loc;
server_name profit-spb.loc;
location / {
include /etc/nginx/mime.types;
index index.php;
if (!-e $request_filename){
rewrite ^/panel/(.*) /panel/index.php break;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php last;
break;
}
location /content {
rewrite ^/content/(.*)\.(txt|md|mdown)$ /error redirect;
}
location /site {
rewrite ^/site/(.*) /error redirect;
}
location /kirby {
rewrite ^/kirby/(.*) /error redirect;
}
location /robots {
rewrite ^/robots.txt /robots.txt break;
}
}
location ~ \.php$ {
# 404
try_files $fastcgi_script_name =404;
# default fastcgi_params
include fastcgi_params;
# fastcgi settings
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
# fastcgi params
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
#fastcgi_param PHP_ADMIN_VALUE "open_basedir=$base/:/usr/lib/php/:/tmp/";
}
}