Commit 0cb083b6 authored by omega8cc's avatar omega8cc

Nginx: Add support for s3/files/styles (s3fs)

parent f5031a71
......@@ -486,6 +486,19 @@ location ~* /sites/.*/files/styles/(.*)$ {
try_files /sites/$main_site_name/files/styles/$1 $uri @drupal;
}
###
### The s3/files/styles (s3fs) support.
###
location ~* /s3/files/styles/(.*)$ {
access_log off;
log_not_found off;
expires 30d;
<?php if ($nginx_config_mode == 'extended'): ?>
set $nocache_details "Skip";
<?php endif; ?>
try_files /sites/$main_site_name/files/styles/$1 $uri @drupal;
}
###
### The files/imagecache support.
###
......
......@@ -484,6 +484,19 @@ location ^~ /<?php print $subdir; ?> {
}
###
### The s3/files/styles (s3fs) support.
###
location ~* ^/<?php print $subdir; ?>/s3/files/styles/(.*)$ {
access_log off;
log_not_found off;
expires 30d;
<?php if ($nginx_config_mode == 'extended'): ?>
set $nocache_details "Skip";
<?php endif; ?>
try_files /<?php print $subdir; ?>/sites/$main_site_name/files/styles/$1 $uri @drupal_<?php print $subdir; ?>;
}
###
### Imagecache and imagecache_external support.
###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment