Commit f9c38ef7 authored by omega8cc's avatar omega8cc

Nginx: Add the fix for known problem with files/imagecache in legacy D6 sites (again).

parent d2ed79c4
......@@ -487,6 +487,9 @@ location ~* /sites/.*/files/imagecache/(.*)$ {
log_not_found off;
expires 30d;
<?php if ($nginx_config_mode == 'extended'): ?>
# fix common problems with old paths after import from standalone to Aegir multisite
rewrite ^/sites/(.*)/files/imagecache/(.*)/sites/default/files/(.*)$ /sites/$main_site_name/files/imagecache/$2/$3 last;
rewrite ^/sites/(.*)/files/imagecache/(.*)/files/(.*)$ /sites/$main_site_name/files/imagecache/$2/$3 last;
set $nocache_details "Skip";
<?php endif; ?>
try_files /sites/$main_site_name/files/imagecache/$1 $uri @drupal;
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