You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use the drupal/s3fs module (https://www.drupal.org/project/s3fs) with image styles, it changes all the image styles paths to start with /s3/files/styles/....
The current vhost default.conf file doesn't allow for generating image styles using that path, making all the image styles 404
Current (doesn't support S3FS module + image styles)
# Fighting with Styles? This little gem is amazing.
# location ~ ^/sites/.*/files/imagecache/ { # For Drupal <= 6
location ~ ^(/[a-z\-]+)?/sites/.*/files/styles/ { # For Drupal >= 7
try_files $uri @rewrite;
}
After much debugging for finding the root cause, I did the following and it works now. I don't know if it's the best way, but just thought I'd share if someone would want to contribute and commit into the recipe.
Fixed (at least for me)
# Fighting with Styles? This little gem is amazing.
# location ~ ^/sites/.*/files/imagecache/ { # For Drupal <= 6
location ~ '^(/[a-z\-]+)?/sites/.*/files/styles/|^/s3/files/styles/' { # For Drupal >= 7
try_files $uri @rewrite;
}
The text was updated successfully, but these errors were encountered:
If you use the
drupal/s3fs
module (https://www.drupal.org/project/s3fs) with image styles, it changes all the image styles paths to start with/s3/files/styles/...
.The current vhost
default.conf
file doesn't allow for generating image styles using that path, making all the image styles 404Current (doesn't support S3FS module + image styles)
After much debugging for finding the root cause, I did the following and it works now. I don't know if it's the best way, but just thought I'd share if someone would want to contribute and commit into the recipe.
Fixed (at least for me)
The text was updated successfully, but these errors were encountered: