【发布时间】:2012-12-01 17:58:09
【问题描述】:
我有一个使用子域和域映射运行的 Wordpress 多站点。
域被配置为 Serveralias。
ServerAlias *.domain1.tld *.domain2.tld *.domain3.tld
基本上我正在尝试帮助使用新模板并希望
dev.domain.tld
只能通过身份验证访问
一般我会使用类似的东西:
AuthUserFile /var/www/vhosts/domain.tld/httpdocs/.htpasswd
AuthGroupFile /dev/null
AuthName "Area 51"
AuthType Basic
<limit GET POST>
require valid-user
</limit>
<Files *>
Order allow,deny
Allow from all
Satisfy any
</Files>
但这会同时保护所有(子)域。有什么想法吗?
【问题讨论】:
标签: wordpress apache .htaccess password-protection