我想用 mod_digest 保护多个目录和一个设置。
目前我有这个/etc/apache2/conf.a/mod-digest_realm-protected.conf
AuthType Digest
AuthName "protected"
AuthDigestDomain /adminer/ /school-project/
AuthDigestNonceLifetime 300
AuthDigestProvider file
AuthUserFile /etc/apache2/.digest
Require valid-user
这在/etc/apache/sites-available/default
<Directory /var/www/adminer/>
Include /etc/apache2/conf.a/mod-digest_realm-protected.conf
</Directory>
<Directory /var/www/school-project/>
Include /etc/apache2/conf.a/mod-digest_realm-protected.conf
</Directory>
有没有办法把这个设置放在一个配置文件中?我尝试过这样的事情
<Directory /var/www/(adminer/school-project)/>
... auth_digest settings
</Directory>
但它不起作用。