If you’re concerned about hitting the 100 domain/alias limit then setting up separate sites would probably be the smart way to go.
I don’t know if it is a nginx best practice or something EasyEngine does but the site configs are in /etc/nginx/sites-available/
and /etc/nginx/sites-enabled/
contains a symlink to the conf in /etc/nginx/sites-available/
to turn sites on and off. Here is a complete example:
server {
# Uncomment the following line for domain mapping
listen 80 default_server;
server_name
root.russellheimlich.com *.root.russellheimlich.com
russellandkristina.com www.russellandkristina.com *.russellandkristina.com
zadieheimlich.com www.zadieheimlich.com *.zadieheimlich.com
veraheimlich.com www.veraheimlich.com *.veraheimlich.com
tweets.kingkool68.com *.tweets.kingkool68.com;
# Uncomment the following line for domain mapping
#server_name_in_redirect off;
access_log /var/log/nginx/root.russellheimlich.com.access.log rt_cache_redis;
error_log /var/log/nginx/root.russellheimlich.com.error.log;
root /var/www/root.russellheimlich.com/htdocs;
index index.php index.html index.htm;
# include common/php7.conf;
include common/redis-php7.conf;
include common/filename-rewrites.conf;
include common/wpcommon-php7.conf;
include /var/www/root.russellheimlich.com/conf/nginx/*.conf;
include common/locations-php7.conf;
ssl_certificate /etc/letsencrypt/live/russellheimlich.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/russellheimlich.com/privkey.pem; # managed by Certbot
}
You could set up a new conf file for each domain that changes the root
path to the directory of your main multisite install. Each site would get its own SSL cert which would live in /etc/letsencrypt/live/
and would just need to be referenced in the nginx config.
I don’t know if EasyEngine will help in making this easier. You could probably script something up to make it easy to add a new domain and update everything.
Here is what nginx has to say about huge server_name
blocks: http://nginx.org/en/docs/http/server_names.html#optimization Seems like you would be fine until the block is too big to fit in the CPU’s L1 cache.