Welcome! Log In Create A New Profile

Advanced

Wordpress Multisite subdomain

Posted by creasy-baer 
Wordpress Multisite subdomain
July 22, 2016 12:18PM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 209
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready