Running magento 2.4.4 w/ Nginx and varnish. Everything works well except images on my shopping cart are not showing!
I set the permissions of my files correctly. When I check my source it says this:
When I check my server the images are there at the location
/pub/media/catalog/product/cache/b16649c577741285fa75d4653f62d403/i/n/image_file_name.jpg
There is an extra /pub as you can see.
my Nginx relevant config is this
location /pub/ {
location ~ ^/pub/media/(downloadable|customer|import|custom_options|theme_customization/.*\.xml) {
deny all;
}
alias $MAGE_ROOT/pub/;
add_header X-Frame-Options "SAMEORIGIN";
}
location /media/ {
try_files $uri $uri/ /get.php$is_args$args;
location ~ ^/media/theme_customization/.*\.xml {
deny all;
}
location ~* \.(ico|jpg|jpeg|png|gif|svg|svgz|webp|avif|avifs|js|css|eot|ttf|otf|woff|woff2)$ {
add_header Cache-Control "public";
add_header X-Frame-Options "SAMEORIGIN";
expires +1y;
try_files $uri $uri/ /get.php$is_args$args;
}
logs shows nothing.
This is driving me nuts. Beside permission and nginx conf. what else could this be?