Innovative Open source WEB technologies for everyone

IOWEB Technologies

with our news and our solutions

Magento Nginx - Thumbs not working in media manager

Symptoms

In certain server configurations Magento is unable to display the image thumbnails in Media Manager:

Cause

This used to be caused by a bug in Magento also, however If you’re using latest Magento versions it should be fixed and everything should be appearing correctly but sometimes  your server configuration is preventing the images from being downloaded. 

As you can see in the next picture the requests in such cases return a 403 forbidden response.

Resolution

Thumbs in magento are created in the folder  
/media/wysiwyg/.thumbs
As you can notice the directory name is preceded by a dot and some server configurations don’t allow access to files or folders when their name is preceded by a dot.
location ~ /. {
deny all;
}
This will cause anything preceded by a dot to throw an access forbidden exception.
As a workaround you can bypass this rule by using a location directive with higher importance than a regex match e.g.
location ^~ /media/wysiwyg/.thumbs/ {
allow all;
}

Ioweb Technologies

IOWEB TECHNOLOGIES, located in Thessaloniki and Athens, are a team of experienced, professional web developers that deployed many corporate websites, b2b and b2c e-commerce systems and web applications.

We started our company when we noticed that many businesses experience dificulties finding partners that are as commited to long - term partnerships as they need them to be.

Find Us

IOWEB TECHNOLOGIES P.C.
Manou Loizou 16, Nikopoli
ZIP: 56430
Thessaloniki

Reg. No. 156550206000

Tel: +302313113732

Working Hours

Monday-Friday: 9:00 - 17:00
© 2015-2022 IOWEB TECHNOLOGIES P.C.

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

Privacy Settings saved!
Privacy Settings

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.

This cookies are necessary for the operation of the website and cannot be disabled

Αυτά τα cookies είναι απαραίτητα για τη λειτουργία του ιστότοπου και δεν μπορούν να απενεργοποιηθούν.
  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

Decline all Services
Accept all Services
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram