hi, in which cases is blogs.dir used? i’ve just configured a subdomains multisite with v3.5.1 and uploading an image on blogid=2 creates it under wp-content/uploads/sites/2/ so it’s served as a static file by nginx.

First – I love your tutorials. They are the best at WordPress / Nginx and Multisite. I appreciate your logic and particularly liked your post showing us the best locations for certain files. I am moving from cpanel/whm to Nginx. The sites I have already moved are so much faster it is insane.

My question:

What is the best way to configure a second wordpress multisite on the same nginx configuration. I have configured exactly as you outlined for one – however – I know I run into issues whenever attempt to create another site-enabled config file… specifically in the lines here:

I have a great server I am using, and I have many small groups. I want to load multiple groups on once server. I have read a couple of places that you cannot put more than one multisite group on one nginx installation. I know that cannot be right.

If you are using multisite without domain mapping, then you can change listen 80 default_server; to simply listen 80; in one or both config.

server_name field alone is sufficient to map all subdomains for a particular domain correctly.

If you are using domain-mapping on both sites then easiest you can do is to have 2 dedicated-IP’s on your server. For example, you get IP’s 1.1.1.1 and 2.2.2.2, then you can change listen 80 default_server; to listen 1.1.1.1:80 default_server; and listen 2.2.2.2:80 default_server; in respective sites.

If you do not have dedicated-IP’s then on smaller network, change listen 80 default_server; to simply listen 80; and then add all mapped-domains in server_name. This is tedious but will work as long as number of mapped-domains are limited.

I tried copying your config above, save for the few changes relevant to my installation of php-fpm, and some of it works. The wp-admin stuff will work, but going to domain.com downloads the php file as a file named “download”. That is the reason I came here, your config example didn’t fix it though, so there must be something else I am doing wrong?

Sorry about the code thing being messed up in the previous comment. A little more playing around with no progress. Viewing a site, or just the domain name, downloads the index.php file as “download”. I entered in the domain.com/wp-config.php and it seems to actually process that one, as the page returns blank, as expected. Browsing to an invalid filename returns the WordPress pretty file not found page. From the “This is embarassing…” 404 page clicking the default “sample page” (domain.com/sample-page/) works, it seems for whatever reason to not be willing to process the index.php file, everything else seems to be working.

One more comment, or you could delete the other two, if you prefer. I got the issue resolved. Not sure what was wrong in the configuration, but I think hours were wasted due to a problem existing between the keyboard and the chair. To anyone else who sees this, CLEAR THE CACHE ON YOUR BROWSER. It helps.

Follow the guide step by step for setting up the Ubuntu 12.04 server as well as wordpress. I am attempting to enable multisite with subdomains. Whenever I try to access the subdomain, it takes me to my internet providers page and says “Unable to find”. Any suggestions as to what I can try?