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


#1

Hey everybody!

Sum:

  • 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: example.com/files/2016/01/youtube-524x295.jpg - 404 error

You can look it here for example: http://kimry.net/

On the host network domain all good http://kimrylive.ru/ (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 {
        internal;
        alias /var/www/example.com/htdocs/wp-content/blogs.dir;
        access_log off;     log_not_found off;      expires max;
    }

Code from there nginx.com/resources/wiki/start/topics/recipes/wordpress/


#2

here https://updraftplus.com/faqs/i-am-restoring-a-pre-wordpress-3-5-multisite-into-a-3-5-or-later-multisite-what-happened-to-my-blogs-dir/ 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.


#3