Private file system image styles *.conf

Events happening in the community are now at Drupal community events on www.drupal.org.
tbenice's picture

For those who use the private file system for images (or amazons3 which uses private file system), the following needs to be in your .conf for nginx:

# Catch image styles for private files.
        location ~ ^/system/files/styles/ {
                try_files $uri @rewrite;
        }

The stated config:

# Catch image styles for private files.
        location ~ ^/sites/.*/private/styles/ {
                try_files $uri @rewrite;
        }

does not work.

Comments

You Rockstar!

tim.foxell's picture

Thank you so much!

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: