Report this

What is the reason for this report?

Installing wordpress multi-site on new version of wordpress

Posted on May 11, 2017

@jtittle i know u posted a comment on my earlier post, but dont for some reason i cant see that comment. i also tried to copy the link from your profile but no luck.

anyways, now i have wordpress multi-site on subdomain. completely working so far. and i uploaded an image for test on my new site, and found that blogs.dir is now sites inside wp-content/uploads

now my question is, from wordpress codex, these seems pretty important if you are concern about performance.

map $http_host $blogid {
        default               0;
        www.mysite.com           1;
        subdomain.mysite.com     2;
}

        location ~ ^/files/(.*)$ {
                try_files /wp-content/upload/sites/$blogid/$uri /wp-includes/ms-files.php?file=$1;
                access_log off; log_not_found off;
        }

        location ^~ /sites {
                internal;
                alias /var/www/novoapp/html/wp-content/sites;
                access_log off; log_not_found off;
        }

        location ~* /(?:uploads|files)/.*\.php$ {
                deny all;
        }

as you can see, i changed blogs.dir folder name and location accurately but my question is, does all these still required? or im just wasting time on some deprecated stuffs here.

by the way, i also removed following lines from server block as im not on sub-directory anymore. i hope that ok.

       if ( !-e $request_filename ) {
               rewrite /wp-admin$ $scheme://$host$uri/ permanent;
               rewrite ^(/[^/]+)?(/wp-.*) $2 last;
               rewrite ^(/[^/]+)?(/.*\.php) $2 last;
       }

and thanks a lot my friend for all the help. you are really amazing.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.