I'm using this docker image: webdevops/php-nginx:latest
I try to access an image with the url:
http://localhost/cache/gen/image/w4I1QDE94564ZiI6IjJESXRl55MvQ3VycmVDE3kvU2VudGluZWw4SmV3ZWxsZXJBUmVjb21iaW5hdG9yI456c2NhbGUiOjF9XQ/qqb3204ec5/Model.png
but it points to my index.php
I tried putting the image in the root folder (/app/public/) and that just works fine.
For me it does seam like the url is to long?
I tripple checked that the file is in that location (/app/public/cache/gen/image/..). It is..
How can I access the PNG file with this url?
(If possible I don't want to change the folder structure, because it is from a data dump)
I attached the config file:
server {
listen 80 default_server;
server_name _ *.vm docker;
root "/app/public/";
index index.php;
client_max_body_size 50m;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
access_log /docker.stdout;
error_log /docker.stderr warn;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_read_timeout 600;
}
}