pothi / wordpress-nginx

WordPress specific Nginx configuration templates and best practices!
https://www.tinywp.in
MIT License
397 stars 82 forks source link

Which files should I review to learn more about multisite configuration? #15

Closed blue928 closed 6 years ago

blue928 commented 6 years ago

I run a 100+ site multisite network which is configured to use sub domains. I'm experimenting with migrating from our existing Apache server to Nginx, but the tutorials I find online all have varying or conflicting information depending on the age of the tutorial.

To learn how modern multisite configurations work, which of your files should I review for reference?

If I followed the instructions to download and implement these files, do I need to do anything in particular to get this working correctly with a subdomain setup? Or should this just work after I drop it in?

Running: Ubuntu 18.04 bionic nginx 1.14 Wordpress 4.9.7 with PHP 7.2 Using cloudflare free, if that matters

blue928 commented 6 years ago

I think I see how it works now..

So, in the sites-available directory, I'd actually use the mu-dom-example.com.conf file, which includes globals/mu-files.conf, globals/assets.conf, and globals/restrictions.conf files.

Seems pretty straight forward now that I spent some time with it. Not sure how SSL is being called yet, but with more digging that will probably become apparent. Thanks for a great setup!