6
我想用一個設置來保護多個目錄與mod_digest。Apache:多個目錄的一個設置
目前我有這個/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 /阿帕奇/網站可用/默認
<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>
但它不起作用。