Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pt844931's avatar

Image are not displayed from public folder

Hey I'm using some placeholder image files, and for most of the projects it always works like expected, but I started recently a new project and wanted to integrate a few placeholder images, but suddenly they are not working anymore... I don't know if that is an error on the site configuration in Nginx or not... because I tried a lot and just copied it 1-1 like in other projects, and it's not working. The only difference is this time it's Inertia with Laravel 10... I had also Inertia Projects some time ago and there was also no problem...

Also, I'm using FF as a Browser, and throws the error "NS_ERROR_NET_PARTIAL_TRANSFER", so could it maybe be because I'm on my local machine and only have "HTTP" and not "HTTPS"?

But like I said for other projects it's still working even with "HTTP".

My Nginx site config looks like that.

server {
        listen 80;
        listen [::]:80;
        server_name _;
        root /var/www/html/public;
        index index.php index.html;
        location / {
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
        try_files $uri /index.php =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        fastcgi_buffers 16 16k;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
        }
}

Thanks for any help :)

0 likes
1 reply

Please or to participate in this conversation.