Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
f9c38ef7
Commit
f9c38ef7
authored
Nov 19, 2014
by
Grazyna Jaworska
Browse files
Nginx: Add the fix for known problem with files/imagecache in legacy D6 sites (again).
parent
d2ed79c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
http/Provision/Config/Nginx/Inc/vhost_include.tpl.php
View file @
f9c38ef7
...
...
@@ -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;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment