Images from media library not showing after migrated to new server with EE

Hey everybody!


  • New VDS with zero installed EasyEngine
  • Subdomains + DomainMapping + Redis installation
  • Older website with media folder for multisites in /wp-content/blogs.dir/$id/files/ (I thinking its a reason of troubles)

Subsites images are not displaying (its not depend using domain mapping or not - I tried made a new subsites - same problem ). A link to the picture looks like this: - 404 error

You can look it here for example:

On the host network domain all good (images have url /wp-content/uploads/2013/09/saami_family_1900-607x170.jpg - unsecurity, but working)

Please help me! I thinking for old network sites with blogs.dir folder must be special settings in nginx. Like this:

#WPMU Files
        location ~ ^/files/(.*)$ {
                try_files /wp-content/blogs.dir/$blogid/$uri /wp-includes/ms-files.php?file=$1 ;
                access_log off; log_not_found off;      expires max;

    #WPMU x-sendfile to avoid php readfile()
    location ^~ /blogs.dir {
        alias /var/www/;
        access_log off;     log_not_found off;      expires max;

Code from there

here I did find some reasons, but how to fix my problem I dont understand. EE not supporting websites made by WP early 3.5 version.