AOEpeople / Aoe_LazyCatalogImages

Magento module to lazy render catalog images
Open Software License 3.0
71 stars 14 forks source link

Provide nginx config sample #10

Open LeeSaferite opened 9 years ago

davidalexander commented 9 years ago

The below is currently working for us on nginx/1.8.0:

location /media/catalog/product/LCI/ {
    try_files $uri $uri/ @lcihandler;
}
location @lcihandler {
    rewrite / /lci.php;
}
wigman commented 8 years ago

For me above didn't work because of some caching rules set for images on our server. This one works for us:

location ^~ /media/catalog/product/LCI { try_files $uri $uri/ @lcihandler; } location @lcihandler { rewrite / /lci.php; }