Dear all,
I'm new here and because I'm preparing my switch from Apache2 to nginx.
In Apache 2 I've a configuration for a wordpress multisite installation on subdomains:
domain.tld
blog.domain.tld
itstuff.domain.tld
On Apache I had one config file for all of them. The subdomains have been set by the
ServerName domain.tld
ServerAlias blog.domain.tlditstuff.domain.tld
As some of these subdomains are not yet finished I've protected them with a password.
Now I'm not sure how to do this in ngix.
I think I can create in such cases a new config for the subdomain. But this means that I've to mange two files just because I need the password authentication. The rest of the config files would be the same.
Does anyone know another way to protect subdomain? Is it possible with a rewrite?
I'm glad about any kind of help.
BR Chris