location ^~ /uploads/cache/{
try_files $uri $uri;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME /resize.php;
fastcgi_param DOCUMENT_URI /resize.php;
fastcgi_param SCRIPT_FILENAME /home/site/www/resize.php;
fastcgi_param HTTPS off;
fastcgi_pass php5;
}